Forum Discussion
Avg Total
- 5 years ago
Anonymous
If the total average isn't correct, it probably has to do with the filter context of the table/matrix and how the relationships are established in the model, and/or the measures involved.
So we need more information about the model, how the table/matrix is set up and any measures involved.
(You will probably solve this by using an AVERAGEX(SUMMARIZE...) but it may be overkill depending on the model structure and matrix filter context)
Anonymous
It appears you are using AVERAGEX with a column as the expression. If you are averaging a column in a table, Just use the function AVERAGE.
otherwise, create an aggregation measure for the column values (like SUM) and use that in the AVERAGEX function. Something along the lines of :
AVERAGEX(Table, [Sum of values])
- Anonymous5 years agoNot applicable
Hi Paul - I tried your formula, and several others with and without AverageX.
For the love of God I just want a simple average of the column! 😁 There are 32 records in this list. 4000 / 32 = 125 (but that is not the value I want to show). So I can see what Power Bi is doing....it's jut not what I need it to do.
I want to show the same value as what Excel shows....or what it will show if you just were to add up Avg Opp Age and divide by 6...which will be 108.66.....not 125.
- PaulDBrown5 years agoCommunity Champion
Anonymous
If the total average isn't correct, it probably has to do with the filter context of the table/matrix and how the relationships are established in the model, and/or the measures involved.
So we need more information about the model, how the table/matrix is set up and any measures involved.
(You will probably solve this by using an AVERAGEX(SUMMARIZE...) but it may be overkill depending on the model structure and matrix filter context)
- Anonymous5 years agoNot applicable
Ok, so discovered the "why", but not sure of the fix.
The totals below will average on a calculator, or Excel, to 714.20 - just as they do here.
What made the difference was by adding "item" to the table. For example, the first two lines below are from the same Opportunity (from our CRM system)....but there are two distinct rows to this Opportunity, representing two differnent products that are part of the overall opportunity. So....adding the "item" (product) to the table exposed this additional row, and made the average total add up correctly. It was actually correct all along....just deceiving because the other rows were not showing. And when exporting to Excel, the export only captured the rows that were showing.