Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Rolling Sum

I have measure for calculating rolling sum.It calculate correctly if data available with in period.ie if am calculating rolling sum in jun 2021 and if any record available in july 2020 its showing correct figure,but no data available in july2020 is shows blank.

please help me to sortout this

 

Roll Count =
CALCULATE([Total],
FILTER(
ALL('Date'),
AND(
'Date'[Date] <= MAX('Date'[Date]),
DATEADD(
'Date'[Date],12,month
) > MAX('Date'[Date])
)
)
)

1 Reply