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
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!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |