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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Calculate Average of measure over time

Hey fellow Power BI user,

 

I have the following problem and cannot figure it out.

I have a measure in which I calculated the number of open jobs per month:  "OpenJobsPerMonth".

When I plot this against DateTime I get the following graph (now in table form):

Month  OpenJobsPerMonth

January         15

February       13   

March           0

April             12

May              10     

 

What I now want, is to calculate another measure with the average value independent of time.

I tried using the following DAX formula, but it gives me incorrect results, because it just gives me the same values when I plot it over time.

 

AverageofaMeasure =
AVERAGEX ( VALUES ( DateTimeTable[Month] ), [OpenJobsPerMonth] )

What I want to get is just one number replicated for every time moment, as in the "WhatIWant" column.

Please help me to write a formula to get this.


Month  OpenJobsPerMonth AverageofaMeasure WhatIWant

January         15                            15                           10

February       13                            13                           10

March           0                               0                            10

April             13                             13                           10

May              9                               9                            10

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for your response, but I found another solution.

Below is the DAX formula with which I managed to get the results I needed:

 

AverageOpenJobs = 
CALCULATE([OpenJobs] / COUNTX(DISTINCT(DateTimeTable[Month]);DateTimeTable[Month]);ALL(DateTimeTable))

View solution in original post

2 REPLIES 2
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You need to modify your measure.

AverageofaMeasure =
AVERAGEX ( ALL ( DateTimeTable[Month] ), [OpenJobsPerMonth] )

Here is the visual.

 

4-1.PNG

 

Best Regards,

Eads

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Anonymous
Not applicable

Thanks for your response, but I found another solution.

Below is the DAX formula with which I managed to get the results I needed:

 

AverageOpenJobs = 
CALCULATE([OpenJobs] / COUNTX(DISTINCT(DateTimeTable[Month]);DateTimeTable[Month]);ALL(DateTimeTable))

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors