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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.