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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi all, I have a table like this
I want to assign ranks on the score based on score, i.e highest score will have rank 1 and 2nd highest will be rank 2 and so on.if the scores are tied, then same rank for both! How can I achieve this?
Solved! Go to Solution.
Hi @Anonymous ,
Please try the measure.
Rank =
RANKX (
ALLSELECTED ( 'Table'[ID] ),
CALCULATE ( SUM ( 'Table'[Score] ) ),
,
DESC,
DENSE
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Please try the measure.
Rank =
RANKX (
ALLSELECTED ( 'Table'[ID] ),
CALCULATE ( SUM ( 'Table'[Score] ) ),
,
DESC,
DENSE
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Like this
'Product'[UnitPriceRankDense] =
VAR PriceOfCurrentProduct = 'Product'[Unit Price]
VAR HigherPrices =
FILTER (
VALUES ( 'Product'[Unit Price] ),
'Product'[Unit Price] > PriceOfCurrentProduct
)
RETURN
COUNTROWS ( HigherPrices ) + 1
(From <The Definitive Guide to DAX> P96)
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 70 | |
| 51 | |
| 42 | |
| 29 | |
| 22 |
| User | Count |
|---|---|
| 142 | |
| 119 | |
| 56 | |
| 37 | |
| 32 |