Forum Discussion
Rolling 12 month Total
- 5 years ago
StuartSmith , Check these examples with date table. In one case date from the table has been used. Another one used date from date table.
Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX(Sales[Sales Date]),-12,MONTH))
when you select one date and need a trend for 12 months
https://www.youtube.com/watch?v=duMSovyosXE
Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-12,MONTH))
StuartSmith , Check these examples with date table. In one case date from the table has been used. Another one used date from date table.
Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX(Sales[Sales Date]),-12,MONTH))
when you select one date and need a trend for 12 months
https://www.youtube.com/watch?v=duMSovyosXE
Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-12,MONTH))