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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.