Forum Discussion
Anonymous
6 years agoNot applicable
Calculating a mean/average based on a measure
Hello guys, I have the following measure which counts the number of occurrences of product IDs within a column. Occurrence = COUNT('Table'[Product ID]) Since I would like to find out how oft...
Greg_Deckler
Community Champion
6 years agoAnonymous - 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.