Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi
I'm looking to create a ranking as a measure.
It looks like the following:
Solved! Go to Solution.
what if try to use ALL()?
DIVIDE (
RANKX ( ALL ( Corporate ), CALCULATE ( SUM ( Corporate[Amount] ) ), , ASC, DENSE ),
MAXX (ALL ( Corporate ), RANKX ( ALL ( Corporate ), CALCULATE ( SUM ( Corporate[Amount] ) ), , ASC, DENSE ))
)do not hesitate to give a kudo to useful posts and mark solutions as solution
Hi @rhl94
try MAXX function https://docs.microsoft.com/en-us/dax/maxx-function-dax , smth like
DIVIDE (
RANKX ( ALL ( Corporate ), CALCULATE ( SUM ( Corporate[Amount] ) ), , ASC, DENSE ),
MAXX (Corporate, RANKX ( ALL ( Corporate ), CALCULATE ( SUM ( Corporate[Amount] ) ), , ASC, DENSE ))
)do not hesitate to give a kudo to useful posts and mark solutions as solution
Unfortunately that does not seem to work:
The Rank column is the desired outcome.
what if try to use ALL()?
DIVIDE (
RANKX ( ALL ( Corporate ), CALCULATE ( SUM ( Corporate[Amount] ) ), , ASC, DENSE ),
MAXX (ALL ( Corporate ), RANKX ( ALL ( Corporate ), CALCULATE ( SUM ( Corporate[Amount] ) ), , ASC, DENSE ))
)do not hesitate to give a kudo to useful posts and mark solutions as solution
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |