Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I need to order the weeks correctly within a month, what's the optimal way to achieve it? ( I am consuming live from SSAS, so I will have to fix it in the cube if possible rather than in the pbix)
Instead of:
I would like 52,53 53,1,2,3,4
Hi @ovonel ,
Try create calculate column:
Index = WEEKNUM(data[Date],2)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I get
Hi, @ovonel
Thank you for your feedback.
The below formula is for crating a new column.
Please share your sample pbix file, then I can try to look into it to come up with a more accurate formula for creating a new column.
Thank you.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi, @ovonel
I think you need a new column (week end date column). Then you can sort it by this new column.
I assume you have a year column in the same table, and you can write something like the below formula to create a new column for the sorting purpose.
Weekending date CC =
VAR currentyear = 'Calendar'[Year]
VAR currentweeknumber = 'Calendar'[Week Number]
RETURN
CALCULATE (
MAX ( 'Calendar'[Date] ),
FILTER (
'Calendar',
'Calendar'[Year] = currentyear
&& 'Calendar'[Week Number] = currentweeknumber
)
)
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
97 | |
75 | |
65 | |
53 |
User | Count |
---|---|
144 | |
103 | |
98 | |
85 | |
64 |