Hi, i have a pretty simple ranking issue im unable to resolve.
In an example table i have 4 rows and 2 columns.
A - 5
A - 7
B - 13
B - 4
I want rank these categories (A and B). How do i rank them from 1 to 2 rather than from 1 to 4? The result should be B = 1 and A = 2.
Go to Solution.
is this what you want?
Column = RANKX(ALL('Table (2)'),CALCULATE(SUM('Table (2)'[VALUE]),ALLEXCEPT('Table (2)','Table (2)'[ID])),,DESC,Dense)
Proud to be a Super User!
View solution in original post
The ranking should typically done in a measure. Why do you want it as a column?
Ranking measure : =RANKX ( ALL ( Categories ), CALCULATE ( SUM ( Data[value] ) ),, DESC )
Link to the sample pbix file
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Best regards, JiHwan Kim
Learn how to create your own user groups today!
Click here to read more about the October 2021 Release!
Check out the new Power Platform Community Connections gallery!
Mark your calendars and join us for our next Power BI Dev Camp!