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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
OmarSaleh
Helper I
Helper I

Ranking issue with RANKX

Hello

 

Can anyone please help resolving the following issue with RANKX. 

 

I'm trying to create a new measure to rank the names in below table based on their scores using RANKX 

 

 

 Rank = RANKX(All(Digital_Interactions),[Score])

 

 

Score is another measure that's calculated by multibliing and summing multible measures

 

 

 

 

 

 

Thanks!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@OmarSaleh , what is the issue you are facing is not clear

You can try, assume you have name column 

Rank = RANKX(All(Digital_Interactions[Name]),[Score])

Rank = RANKX(AllSELECTED(Digital_Interactions[Name]),[Score])

 

For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@OmarSaleh , what is the issue you are facing is not clear

You can try, assume you have name column 

Rank = RANKX(All(Digital_Interactions[Name]),[Score])

Rank = RANKX(AllSELECTED(Digital_Interactions[Name]),[Score])

 

For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Sorry @amitchandak just realised that I didn't mention the Name column after the table. It's working now thank you! 

Thanks @amitchandak for your reply. The issue is that I'm getting the same rank for all names even though I used ALL function as you advised. I don't have the score as a calculated column, it's a measure. 

@OmarSaleh , if you have created a measure rank on the name column and use another column in the visual. All Ranks will be done inside the second column 

refer

https://www.youtube.com/watch?v=DZb_6j6WuZ0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.