Forum Discussion
Average column value different in Power Bi Dax average function
Hi,
Assuming you want to have the average from all of your data, you can just include ALL in your calculate.
E.g. 2020 Avg = CALCULATE(AVERAGE('Current Forecast'[Actuals]), ALL('Current Forecast'))
If you want to have some filter conditions you could use AVERAGEX or something like this:
2020 Avg = CALCULATE(AVERAGE('Current Forecast'[Actuals]), ALL('Current Forecast'),'Current Forecast'[Year]=2020)
I hope this helps and if it does consider accepting this as a solution and giving the post a thumbs up!
ValtteriN i have tired above measure but its not working
- Anonymous4 years agoNot applicable
ValtteriN i want only total sum value average . but my measure its convert all cell value to average .
- ValtteriN4 years agoCommunity Champion
Hi,
I am not sure if I understood the issue, but based on you messages I assume you want to first summarize your data based on some dimension and then take averages out of these values?
In that case try something like this:
Start data:
Dax:Summarized average = var vartable = SUMMARIZE(AverageExample,AverageExample[Category],"Value",SUM(AverageExample[Values])) returnAVERAGEX(vartable,[Value])
End result: