Forum Discussion
Cliff09
8 years agoRegular Visitor
12 Month Rolling average.
Hi, I have been asked to show our monthly sales with a moving average in a table (and chart). Here is some sample data: Sale Date Sale Amount 2/07/2017 $15,000 11/07/2017 $20,000 ...
SivaMani
Resident Rockstar
8 years ago
Try this and let me if it's working or not,
Sales Value L12M =
VAR __EndDate = EOMONTH(LASTDATE(‘Sales’[Date]),0)
VAR __StartDate = DATE(YEAR(__EndDate),MONTH(__EndDate) - 12,1)
RETURN
CALCULATE(SUM(‘Sales’[Value]), DATESBETWEEN(‘Sales’ [Date], __StartDate, __EndDate))
- Cliff098 years agoRegular Visitor
Hi SivaMani,
That is just repeating the value from the 'Total Monthly Sales' Column.