Forum Discussion
Anonymous
4 years agoNot applicable
Measure for top rank category
Hello, I want to add some text in my dashboard such as "XXX had the highest score" where XXX updates depending on how the dashboard is filtered. I have played around with ranking/if stateme...
PaulDBrown
Community Champion
4 years agoDo you already have the measure for the rank? If so, you can use:
Rank 1 Category =
CALCULATE(MAX(Table[Category]), FILTER(VALUES(Table[Category]), [Rank] = 1))
Anonymous
4 years agoNot applicable
Hi,
Yes I do - I have some -0's in my data so used the following measure to account for minus numbers...
RANK=IF(
NOT(ISBLANK([change yoy])),
RANKX(
FILTER(ALLSELECTED(Combined[Question]), NOT( ISBLANK([change yoy]))),
[change yoy]
)
)
Thanks"
- PaulDBrown4 years ago
Community Champion
Try the measure I posted above. Beware that this will only return the max value if there are more than one categories ranked as 1. To avoid this, you can try
Rank 1 Category = CONCATENATEX ( FILTER ( VALUES ( Table[Category] ), [Rank] = 1 ), Table[Category], ", " )- Anonymous4 years agoNot applicable
Thank you - will give this a go and let you know how I get on.