Forum Discussion
Daniel_B
6 years agoHelper II
Dynamic Measures - Visualisation based on highest value
Hi All In my head this sounds very ambitious and I'm sure it's advanced level PBI skill requirements but I wanted to know 2 things based on what I am trying to achieve which is: Challenge: Cr...
Anonymous
6 years agoNot applicable
Hey Daniel_B ,
There are probably other ways to do this, however this was my solution:
- Create a measure to calculate the average rating per site
- Create another measure to calculate the maximum of the average ratings
- Create a calculated table, filtered to show only the row where Average Rating = Max Rating
- Use the calculated table to populate the guage & label (I use a card showing only the Site Name)
Tables
xAvgRating = AVERAGEX(Ratings, Ratings[Rating])
xMaxRating =
CALCULATE(MAXX(Ratings, Ratings[xAvgRating]), ALL(Ratings))
tMaxVal =
FILTER(Ratings, [xMaxRating] = [xAvgRating])
Table and Visual Output
Cheers,
Andy