Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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.
Thanks!
Solved! 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!
Hi,
The ranking should typically done in a measure. Why do you want it as a column?
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!
Ranking measure : =
RANKX ( ALL ( Categories ), CALCULATE ( SUM ( Data[value] ) ),, DESC )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
User | Count |
---|---|
128 | |
108 | |
100 | |
64 | |
62 |
User | Count |
---|---|
136 | |
113 | |
102 | |
71 | |
60 |