Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Average column value different in Power Bi Dax average function

My table looks like below in Excel sheet .  used below Excel function to  find the average value  

 

=AVERAGE(A1:A12)

 

 

THENNA_41_0-1641372615079.png

 

But same data set i have loaded into power bi . i have tired  to average value using the below measure

 

2020 Avg = CALCULATE(AVERAGE('Current Forecast'[Actuals]))
 
But  power bi average totally different 
THENNA_41_2-1641372934165.png
 
How to get same  value in power bi . any idea  .thanks in advance 

 

5 REPLIES 5
smpa01
Super User
Super User

@Anonymous  it is simply not possible, POWER BI will give you exact same result as excel, unless there is something else you have not talked about.

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
ValtteriN
Super User
Super User

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!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

@ValtteriN  i have tired above measure but its not  working 

Anonymous
Not applicable

@ValtteriN  i want only total sum value average .  but  my measure its convert all cell value to average . 

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:

ValtteriN_0-1641378784949.png


Dax:

Summarized average = var vartable = SUMMARIZE(AverageExample,AverageExample[Category],"Value",SUM(AverageExample[Values])) return

AVERAGEX(vartable,[Value])

End result:
ValtteriN_1-1641378845319.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors