Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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 |
---|---|
98 | |
90 | |
77 | |
71 | |
64 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
67 |