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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Calculating average of measure

I have a measure similar to this

 

Calc of = 'TableX'[Number of X] / 1000

Here's the idea: 

I have a filter that selects years from 2016-2019. If I select more than one year in the filter the measure above needs to take the average of this and divide it by a thousand. So if the value is 500 for the year 2017 and 200 for the year 2018 the value of the measure should be 

 

Calc of = 350/1000

where 350 is the average of the two numbers. Right now I just get 700/1000. I tried using the AVERAGEX function but it didn't quite work. 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

It's the old average of an average. Try the following. Always  better to use DIVIDE instead of /:

Total Average = AVERAGE( Table1[Value] )
Total Value = Sum( Table1[Value] ) Average = DIVIDE( AVERAGEX( VALUES ( Table1[Year]),[Total Average]), 1000 )

Average of Average.png

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

It's the old average of an average. Try the following. Always  better to use DIVIDE instead of /:

Total Average = AVERAGE( Table1[Value] )
Total Value = Sum( Table1[Value] ) Average = DIVIDE( AVERAGEX( VALUES ( Table1[Year]),[Total Average]), 1000 )

Average of Average.png

Anonymous
Not applicable

Hi @Anonymous probably a bad formulation from my part in the initial message but the "table" is actually a measure, so how does one go about it from that point of view?

Anonymous
Not applicable

I used an alternative (perhaps not so elegant) method where I used DISTINCTCOUNT(TableX[Years]) and multplied it with the denominator. 

Anonymous
Not applicable

I dont follow 100%. If it works for what you need then thats all that matters 🙂

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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