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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Below is my data
| Person | Price | Calls | Measure - Price/Calls |
| Tom | 6319.85 | 102 | 61.95931373 |
| Harry | 3345.9 | 59 | 56.71016949 |
| Gina | 7678.55 | 137 | 56.04781022 |
| George | 10882.35 | 208 | 52.31899038 |
| Arnold | 9239.55 | 197 | 46.90126904 |
| Frank | 8605.6 | 184 | 46.76956522 |
| Peter | 9338.8 | 206 | 45.33398058 |
Below is my code for ranking
| Person | Price | Calls | Measure - Price/Calls | Rank |
| Tom | 6319.85 | 102 | 61.95931373 | 1 |
| Harry | 3345.9 | 59 | 56.71016949 | 1 |
| Gina | 7678.55 | 137 | 56.04781022 | 1 |
| George | 10882.35 | 208 | 52.31899038 | 1 |
| Arnold | 9239.55 | 197 | 46.90126904 | 1 |
| Frank | 8605.6 | 184 | 46.76956522 | 1 |
| Peter | 9338.8 | 206 | 45.33398058 | 1 |
| Person | Price | Calls | Measure - Price/Calls | Rank |
| Tom | 6319.85 | 102 | 61.95931373 | 1 |
| Harry | 3345.9 | 59 | 56.71016949 | 2 |
| Gina | 7678.55 | 137 | 56.04781022 | 3 |
| George | 10882.35 | 208 | 52.31899038 | 4 |
| Arnold | 9239.55 | 197 | 46.90126904 | 5 |
| Frank | 8605.6 | 184 | 46.76956522 | 6 |
| Peter | 9338.8 | 206 | 45.33398058 | 7 |
Solved! Go to Solution.
Oh, I thought it was just a table and each person had one piece of data.
You may try the followings:
RANKX( ALLSELECTED( Table),
CALCULATE( [Price divided by Calls], ALLEXCEPT( Table, Table[Person])),
,
DESC,
Dense)Hi,
May I know why you use SUMX in your expression? I think it can be as simple as below:
RANKX( Table, Table[Measure - Price/Calls])
Below is a snapshot of the data that i am working with and with your code for Rank i get below.
Not sure what am i missing here.
Oh, I thought it was just a table and each person had one piece of data.
You may try the followings:
RANKX( ALLSELECTED( Table),
CALCULATE( [Price divided by Calls], ALLEXCEPT( Table, Table[Person])),
,
DESC,
Dense)Thank you so much @Anonymous ...that worked.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!