Forum Discussion
StuartSmith
3 years agoPower Participant
Count values from measure.
I have multiple measures that work through a number of steps to figure out if a "Country" is "Within KPI", "Expected KPI Met" and "KPI Breached". Final Measure... (17) KPI Met = VAR KPIMet = ...
Greg_Deckler
3 years agoCommunity Champion
StuartSmith This looks like a measure aggregation problem. See my blog article about that here: https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149
The pattern is:
MinScoreMeasure = MINX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
MaxScoreMeasure = MAXX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
etc.