Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
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.
@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))
Thank you for the solution. I don't believe it calculates 8 days since the end-of-month date, as requested. Is this correct?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!