Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hi
I have the following table
| MeterNo | Value | Rank | Max Rank |
| 123 | 10 | 1 | |
| 123 | 20 | 2 | |
| 123 | 30 | 3 | MAX |
| 456 | 10 | 1 | |
| 456 | 20 | 2 | |
| 456 | 30 | 3 | MAX |
| Table1 |
Can someone advise me on the formula to return the column Max Rank.
Ideally, I'd like the word MAX to idenify the highest 'Rank' for each 'MeterNo'.
Can you help?
Many thanks in advance!
Solved! Go to Solution.
Hi @Anonymous
Try this for your calculated column:
MaxRank =
IF (
Table1[Rank] = CALCULATE ( MAX ( Table1[Rank] ), ALLEXCEPT ( Table1, Table1[MeterNo] ) ),
"MAX"
)
Hi @Anonymous
Try this for your calculated column:
MaxRank =
IF (
Table1[Rank] = CALCULATE ( MAX ( Table1[Rank] ), ALLEXCEPT ( Table1, Table1[MeterNo] ) ),
"MAX"
)
Many thanks AIB!
| User | Count |
|---|---|
| 23 | |
| 22 | |
| 21 | |
| 18 | |
| 11 |
| User | Count |
|---|---|
| 56 | |
| 54 | |
| 43 | |
| 36 | |
| 34 |