Forum Discussion
Miranda1361
3 years agoRegular 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 e...
amitchandak
Super User
3 years agoMiranda1361 , 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))
- Miranda13613 years agoRegular Visitor
Thank you for the solution. I don't believe it calculates 8 days since the end-of-month date, as requested. Is this correct?