Forum Discussion
mschultens
8 years agoNew Member
Calculate Average per category
Hello everyone, I spent a lot of time already looking at similar problems to the one I have, but nothing really worked for me. Assume I have a table with a category and some values. How can I c...
- 8 years ago
Hi mschultens,
Did you use the original expression in the calculated column? It works for me. Please refer:
Or you can try measure:
AverageMeasure = CALCULATE ( AVERAGE ( Table3[Value] ), FILTER ( ALLSELECTED ( Table3 ), Table3[Category] = MAX ( Table3[Category] ) ) )Thanks,
Xi Jin.
Zubair_Muhammad
8 years agoCommunity Champion
You can simply use Average(table[value]) as well if you choose not to put VALUE in the Table VISUAL
Your formula would work as a calculated column
mschultens
8 years agoNew Member
Thank you, but that does not work for me, because I want to put the different averages into one visualization.
- Zubair_Muhammad8 years agoCommunity Champion
- mschultens8 years agoNew Member
It gives me an error saying that a single value for category cannot be determined. I tried putting a MAX() in front, but that gives the same error.
- v-xjiin-msft8 years agoSolution Sage
Hi mschultens,
Did you use the original expression in the calculated column? It works for me. Please refer:
Or you can try measure:
AverageMeasure = CALCULATE ( AVERAGE ( Table3[Value] ), FILTER ( ALLSELECTED ( Table3 ), Table3[Category] = MAX ( Table3[Category] ) ) )Thanks,
Xi Jin.