Forum Discussion
pcray
8 years agoFrequent Visitor
desktop - cumulative total
Hi Is someone able to point me in the right direction ive created a cumulative total for the last 12 months (rolling - see image) I would like to create a second column to show the previous 12 mon...
- 8 years ago
Hi pcray
This might be close
Year L12Mths Prev = CALCULATE( [Year L12Mths] ,SAMEPERIODLASTYEAR('Dates'[Date]) ) - 8 years ago
Hi pcray,
How about this one?
New = CALCULATE ( [total], DATESINPERIOD ( dates[date], LASTDATE ( DATEADD ( 'dates'[Date], -12, MONTH ) ), -12, MONTH ) )Best Regards,
Dale
v-jiascu-msft
Microsoft Employee
8 years agoHi pcray,
How about this one?
New =
CALCULATE (
[total],
DATESINPERIOD (
dates[date],
LASTDATE ( DATEADD ( 'dates'[Date], -12, MONTH ) ),
-12,
MONTH
)
)
Best Regards,
Dale