Forum Discussion
atitarev
7 years agoHelper I
Ranking issue
Hi Power BI experts, I am having an issue in getting the RANKX() working correctly for me. The ranking column is last, which is not working. It's based on the previous column "Sort". T...
- 7 years ago
Try the following formula:
Sorting Rank = IF ( HASONEVALUE ( DATA[Consolidation] ), RANKX ( ALL ( DATA[Consolidation], DATA[Level Leader] ), [Sort Measure], , ASC, Dense) )It shows this ranking
themistoklis
7 years agoCommunity Champion
Try the following formula:
Sorting Rank = IF (
HASONEVALUE ( DATA[Consolidation] ),
RANKX ( ALL ( DATA[Consolidation], DATA[Level Leader] ), [Sort Measure], , ASC, Dense)
)It shows this ranking
atitarev
7 years agoHelper I
Thank you, themistoklis! That's exactly what I need.