Forum Discussion
SUMESHKUMAR22
Helper IV
3 years agoCalculate average based on same category
Hi Everyone, Good day! As per the below snapshot I want to create a new measure where the marked percentage numbers should get averaged beacuse it lies under the same category of column A but colum...
- 3 years ago
Anonymous
3 years agoNot applicable
hello SUMESHKUMAR22 ,
please try:
margin average = CALCULATE(AVERAGE(powerbi[Margin]),ALLEXCEPT(powerbi,powerbi[a]))
ā
SUMESHKUMAR22
Helper IV
3 years agoHi Anonymous ,
This is coming up fine at category level. But in the total average instead of 49.56% it should come up 48.70%. That is dividng the average by distinct table[a] values.
Thanks you!