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.
Hello,
I am trying to find out which hour of the day I am making the most sales. So, I am trying to make a ranking that create a new ranking each day. The column I am trying to create is the "Rank" column (see image below). I am also going to use this column to create other calculated columns. Any help would be greatly appreciated.
I tried doing it using something similar to this (https://community.powerbi.com/t5/Desktop/Creating-a-Ranking-according-to-a-date/m-p/1813762#M705371😞
_Rank measure =
RANKX (
ALLEXCEPT ( 'Table', 'Table'[Date] ),
CALCULATE ( SUM ( 'Table'[Sales] ) ),
,
DESC,
DENSE
)
Solved! Go to Solution.
Calculated column solution
Measure solution
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Calculated column solution
Measure solution
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Thank you!
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 |
---|---|
49 | |
26 | |
21 | |
16 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |