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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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!
Solved! Go to Solution.
@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
@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
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |