Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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)
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 38 | |
| 29 | |
| 27 |