Forum Discussion
Using function Rank or Rankx for grouped rankings
Hi SpanishEnjoyer -Create a new measure that ranks the equipment based on the number of failures within its respective category
Rank_Per_Category =
RANKX(
ALLSELECTED('Table Equipments'[ID Eq]),
[Count_Failures],
,
DESC,
DENSE
)
create another measure for rank for each room as below:
Rank_Per_Room =
RANKX(
ALLSELECTED('Table Equipments'[ID Eq]),
[Count_Failures],
,
DESC,
DENSE
)
this way you can achieve, hope it works.
Thanks for your answer, but the new metrics works as the metric Ranking that is already created. It doesn´t rank the equipment by cathegory or room.
- Anonymous1 year agoNot applicable
Hi SpanishEnjoyer ,
I don't quite understand your grouping logic, if the room ordering 001 and 003 should be the same, they should both return 2.
Please detail your needs and demonstrate the expected results.
Best regards,
Community Support Team_ Scott Chang