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!
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 20 | |
| 17 | |
| 12 |
| User | Count |
|---|---|
| 64 | |
| 55 | |
| 42 | |
| 38 | |
| 30 |