Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi,
I want to create an RANKX function with grouping by FYYear-Week, but also sort by date, right now I have a function:
Logically it makes sense, but I want to add sorting by date to my formula, so instead of index = 107 should be 55 and so on
Best regards
Solved! Go to Solution.
@lokosrio , for that case we create an FY year week column on the year of week start date.
FY Week = QUOTIENT(DATEDIFF(Minx(FILTER('Date',[FY Year]=EARLIER([FY Year])),'Date'[Start of Week]),[Date],DAY),7)+1
Then create = [FY year]*100 + [FY Week]
@lokosrio , for that case we create an FY year week column on the year of week start date.
FY Week = QUOTIENT(DATEDIFF(Minx(FILTER('Date',[FY Year]=EARLIER([FY Year])),'Date'[Start of Week]),[Date],DAY),7)+1
Then create = [FY year]*100 + [FY Week]
User | Count |
---|---|
76 | |
74 | |
61 | |
61 | |
45 |
User | Count |
---|---|
108 | |
103 | |
93 | |
83 | |
64 |