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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
dcon
Regular Visitor

How to calculate a monthly average, over several months?

Hi.

 

I have the following table of incidents and the length of time worked on each incident. I am looking to get teh average time worked per month over a period of months. For example, if i filter the page for Aug-Oct, i want to see the average time spent per month, over the three months. I.e. If total hours are Aug:14, Sept:55, Oct:27, then the average over the 3 months is 32.hours/month.

 

Any help appreciated!

 

NumberCreatedWorked_Hours
INC11864007878/1/2018 6:310.25
INC11864017268/2/2018 8:470.17
INC11864018458/2/2018 12:300.67
INC11864018838/2/2018 13:260.92
INC11864039058/4/2018 21:210.33
INC11864039178/4/2018 21:560.00
INC11864039188/4/2018 21:560.00
INC11864039198/4/2018 21:560.00
INC11864050488/6/2018 10:510.17
INC11864050498/6/2018 10:510.17
INC11864050508/6/2018 10:510.17
INC11864050518/6/2018 10:510.17
4 REPLIES 4
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @dcon,

 

Could you please mark the proper answers as solutions?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
LivioLanzo
Solution Sage
Solution Sage

Hi @dcon

 

I create a calendar table and built the below:

 

Capture.PNG

 

and then i used:

 

=AVERAGEX(
    SUMMARIZE( 'Calendar', 'Calendar'[Month Name], 'Calendar'[Year] ),
    CALCULATE( SUM( WorkedHours[Worked_Hours] ) )
)

 

 

 


 


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


Proud to be a Datanaut!  

Thanks @LivioLanzo

 

I did the following:

 

- Created a calendar table, I think the columns are the same.

- Created relationship between Created in Table1 to Date in Calendar Table

- Created measure with your calculation below

 

The measure does not seem to return anything for me. Any ideas?

 

Regards,

 

donal

Hi,

 

Extract the Date from the created column by using =INT(Data[Created]).  Name this column as Date and build a relationship from this Date column to the Date column of the Calendar Table.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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