Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi!
Can someone help me how to display the ranking of data based on the count?
And what if there are ties, how to display their ranking? I've already tried the RANKX function but it only displayed Rank 1 on all the data.
Thank you in advance. 🙂
Hi @da26
Try the following
1. Create a measure called sumCount = sum( yourtable[CountofHN] )
2. Create a measure called
Rank =
     IF (
HASONEVALUE ( yourtable[Diagnosis] ),
RANKX ( ALL ( yourtable[Diagnosis] ,yourtable[CountofHN]),[sumCount],,desc,dense)
)
If this works please accept this as a solution and also give KUDOS.
Cheers
CheenuSing
Post your Measure formula
Rank =
IF (
    HASONEVALUE ( IPD_CurrentOpenStatus[Diagnosis] ),
    RANKX (
        ALL ( IPD_CurrentOpenStatus[Diagnosis] ),
        CALCULATE ( COUNTA ( IPD_CurrentOpenStatus[HN] ) ),,
        ASC,
        DENSE
    )
)@da26 How about now?
How is you data organized - post some sample of what the table looks like?
Hi @Sean
I already found the solution in ranking. 🙂
But what I am trying to know now is there any way to remove the ties in ranking? As you see here, when there is a tie, the ranking was just like this.
Thank you again. 🙂
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.