I have written two types of Running total with dates as below:-
30 days running Total Sales =
CALCULATE (
[Total Sales],
FILTER (
ALL ( Dates ),
Dates[Date] > MAX ( Dates[Date] ) - 30
&& Dates[Date] <= MAX ( Dates[Date] )
)
)
and
Running Total =
CALCULATE (
[Total Sales],
DATESINPERIOD ( Dates[Date], LASTDATE ( Dates[Date] ), 30, DAY )
)
I am trying to Calculate 30days running total of Total sales. But both of the queries give the different result as Below.
Can anybody explain ......