Forum Discussion
Calculate Average per category
- 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.
Thank you, but that does not work for me, because I want to put the different averages into one visualization.
- 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.- jochendecraene4 years agoHelper V
Hi
I'd like to use this solution, but I also have a subcategory and year that I have to take into account.
I tried using extra filters for subcategory and year, but keep getting errors.
Can someone help me?
This is what my table looks like