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.
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]
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 |
---|---|
98 | |
97 | |
81 | |
77 | |
66 |
User | Count |
---|---|
126 | |
105 | |
103 | |
81 | |
72 |