Forum Discussion
aktripathi2506
Helper IV
10 years agoAverage error in total
HI, Please see below the example. In a table/matrix the total of average value is different from the real average. This is what it look likes in power BI: And when we calc...
- 10 years ago
You need to do an Average of the averages because the total that you see is Allvalues/All Rows.
TO solve this use:
AverageAB = AVERAGEX(SUMMARIZE('Table';'Table'[week];"TheAverageAB";Sum('Table'[A])/Sum('Table'[B]));[TheAverageAB])
You can change with your columns name.
Vvelarde
Community Champion
10 years agoYou want an average of all averages. In excel you are using for the total the formula verage(Alltheaverages Range) is correct?
The average that you are seeing in the visual is: AllmyValues/NumberofRows so the result is different.
You can use this measure to solve this:
AverageofAB= AVERAGEX(SUMMARIZE('Table';'Table'[week];"AverageAB";Sum('Table'[ValuesA])/AVERAGE('Table'[B]));[AverageAB])