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! Learn more

Reply
Miranda1361
Regular Visitor

Calculate Average Monthly Run Rate

Need to calculate the average run rate for each month in the year on the 8th day of the month. Example: I have the total for the year; $4,857,536.00 and need to figure out how much of it belongs to each month that has already taken place this year. We calculate each month on the 8th day of the month. 

 

I currently have an average by dividing the $4.9~ by 12 months, but I need to figure out for the current and previous months, not all 12 months until December 8th. 

2 REPLIES 2
amitchandak
Super User
Super User

@Miranda1361 , With help from date table Avg till last month end

 

YTD =
var _max = eomonth(if(isfiltered('Date'),MAX( 'Date'[Date]) , today()),-1)
var _min = eomonth(_max,-1*MONTH(_max))+1
return
CALCULATE(Averagex(Values('Date'[Month Year]) , [Your Measure])  ,DATESBETWEEN('Date'[Date],_min,_max))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you for the solution. I don't believe it calculates 8 days since the end-of-month date, as requested. Is this correct?

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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