Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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?
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.