Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Hi again,
I am trying to use RANKX to get the Sections with the most number of Cases.
Here is some sample data:
My Expected result is:
Solved! Go to Solution.
Hey @juncco888 ,
if you don't put the "Case Number" in your table (like in your last example), the following measure should work:
Rank = RANKX( ALL( myTable[Section] ), CALCULATE( COUNTROWS( myTable ) ) )
Hey @juncco888 ,
if you don't put the "Case Number" in your table (like in your last example), the following measure should work:
Rank = RANKX( ALL( myTable[Section] ), CALCULATE( COUNTROWS( myTable ) ) )
Thank you so much! That worked perfectly. I added the order and tiebreaking arguments just to see how they worked out.
I really appreciate your help!
Kyle
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 28 | |
| 28 | |
| 19 | |
| 19 | |
| 19 |
| User | Count |
|---|---|
| 37 | |
| 29 | |
| 18 | |
| 17 | |
| 15 |