Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have a slicer dropdown that contains the start date(mondays) of every 52 weeks in 2024 plus "Current Week" and "Last Week". it is current sorted in alphabetical order, either descending or ascending. I want them in the order of "Current Week" first, "Last Week" second, following by calendar orders (Jan-Dec). How can I achieve this? Thanks!
Solved! Go to Solution.
@bwang2 , You need a sort column for that , Make sure you have week start date or end date column, create based on date column
Week Rank = Switch(True(),
[Week Name] ="This Week", -1,
[Week Name] ="Last Week", 0,
RANKX('Date','Date'[Week Start date],,ASC,Dense)
)
and Mark this column as a sort column for your weekname column
How to Create Sort Columns and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c
@bwang2 , You need a sort column for that , Make sure you have week start date or end date column, create based on date column
Week Rank = Switch(True(),
[Week Name] ="This Week", -1,
[Week Name] ="Last Week", 0,
RANKX('Date','Date'[Week Start date],,ASC,Dense)
)
and Mark this column as a sort column for your weekname column
How to Create Sort Columns and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c
User | Count |
---|---|
93 | |
83 | |
77 | |
73 | |
66 |
User | Count |
---|---|
115 | |
104 | |
93 | |
64 | |
61 |