Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
sold to | store | no of trainings | no of trainings compelted | %per store |
x | A | 2 | 1 | 50% |
x | B | 2 | 0 | 0% |
x | C | 2 | 2 | 100% |
y | D | 2 | 0 | 0% |
y | E | 2 | 0 | 0% |
z | F | 2 | 2 | 100% |
z | G | 2 | 2 | 100% |
No of trainings, no of trainings completed and %per store are measures of a table(tc_training_master) and now i want to calculate average of( %per store). for the above example output should be 50%
Solved! Go to Solution.
@Kiran98480 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.
and also this one worked for me
Average = AVERAGEX(VALUES(tc_training_master[store]),[%per store]) this worked for me.
@Kiran98480 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.
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
118 | |
101 | |
71 | |
61 |