Forum Discussion
Pivot table does not display average correctly
If you have nothing else under US it shall be as you said
first measure is Average and second one is average of averages:
Average of ABC Groups :=
IF (
ISFILTERED ( Table3[Item.] ),
AVERAGE ( Table3[ABC] ),
AVERAGEX ( VALUES ( Table3[Group] ), CALCULATE ( Table3[Average of ABC] ) )
)
Without the file can't say why 59% appeared.
Hi SergeiBaklan,
I have included my spreadsheet for your convenience. Prior to sharing, I performed some cleanup. Then, Earlier today, I made a secondary Pivot Table to confirm that the numbers were consistent with the previous data, and they were.
Please do not hesitate to ask me if you have any questions about this file. I appreciate your support and thank you again for it.
- SergeiBaklanJul 31, 2023Diamond Contributor
Thank you for the sample file.
PivotTable calculates correctly average of all records for the given month, and in row Grand Total average for all records for all months. That's not average of averages for each Team Member and for each Role.
If at the bottom of sample table to add the total as
=SUBTOTAL(1,[ABC] )
which is average of ABC ignoring filtered rows, when on filtered table result will be the same as in PivotTable
or
With DAX measure we may calculate average of averages for this or that grouping, not sure what is your goal.