Forum Discussion
ahmad ali
Apr 16, 2019Brass Contributor
Power bi and Average
Hello, I've been using Pivot-tables where we can easily choose Average,sum,... (like the image below) - but is there something like that in Power bi - I have values but I don't know how the find or...
AKP_1
May 07, 2019Copper Contributor
You will need to use DAX to calculate the average of the entity. For example if the table is called flour and you have sales column,
To calculate the sum,
Sum = (Sum(flour[sales]))
While the average will be
Average = (Average(flour[sales]))
SergeiBaklan
May 07, 2019Diamond Contributor
AKP_1 , CALCULATE is not necessary here
- AKP_1May 07, 2019Copper ContributorReally? I thought it is needed in the PowerBI environment.
- SergeiBaklanMay 07, 2019Diamond Contributor
AKP_1 , if you use filters when with CALCULATE, otherwise why to complicate. Here is Excel data model environment, but in Power BI it's the same
- AKP_1May 07, 2019Copper Contributor
Thank you SergeiBaklan For the heads up!