Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

undefined

Hi all, I have a table like this 

karthikbv4_0-1654845490082.png

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? 

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try the measure.

 

Rank = 
RANKX (
    ALLSELECTED ( 'Table'[ID] ),
    CALCULATE ( SUM ( 'Table'[Score] ) ),
    ,
    DESC,
    DENSE
)

vkkfmsft_0-1655191272940.png

 

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.

View solution in original post

2 REPLIES 2
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try the measure.

 

Rank = 
RANKX (
    ALLSELECTED ( 'Table'[ID] ),
    CALCULATE ( SUM ( 'Table'[Score] ) ),
    ,
    DESC,
    DENSE
)

vkkfmsft_0-1655191272940.png

 

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.

Anonymous
Not applicable

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)

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.