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
jn123
Frequent Visitor

Average of a calculated measure

Hello! 

 

I have a dax measure: [Program Average]=ROUND(VALUE([SUM IMP]/[DISTINCT PROGRAM COUNT]),-2)

 

This is so I can see the average of a certain time period (say between 11pm-12am) if there's more than one program in that time period. I have these averages separated by months. 

 

For example: 

 

In September, there were 2 programs that ran in the 11pm-12am time period. Program 1 brought 2,300 and Program 2 brought 2,500. So the average for that time period in the month of September is 2,400. 

In October, there were 3 programs that ran in that time period. Program 1 brought 2,000, Program 2 brought 8,600 and Program 3 brought 3,700. So the average for that time period in the month of October is 4,700.

 

What I would like to do, is be able to see the average of September and October (and have the ability to add in more months as time goes on) for that time period. 

 

I created measure that is [Distinct Month Count]=DISTINCTCOUNT([Month])

 

And then my monthly average measure is [Multi Month Average]=[Program Average]/[Distinct Month Count]

 

It should be giving me (2,400+4,700)/2 = 3,550.. but it is giving me 3,150 instead, which is (((2,300 + 2,000) + (2,400 + 8,600) + (3,700))/3)/2)

 

Is there a way to fix this?

 

Thanks!

 

 

1 ACCEPTED SOLUTION
PaulOlding
Solution Sage
Solution Sage

Hi @jn123 

How about something like..

Multi Month Average =
AVERAGEX(
    VALUES(Table[Month]),
    [Program Average]
)

 

View solution in original post

2 REPLIES 2
PaulOlding
Solution Sage
Solution Sage

Hi @jn123 

How about something like..

Multi Month Average =
AVERAGEX(
    VALUES(Table[Month]),
    [Program Average]
)

 

Bless you!! That did it. Thanks!!!

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