Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 47 | |
| 36 | |
| 27 | |
| 15 | |
| 15 |
| User | Count |
|---|---|
| 58 | |
| 56 | |
| 38 | |
| 21 | |
| 21 |