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] > M