Forum Discussion

thampton's avatar
thampton
Helper III
7 years ago
Solved

Dynamic running total

I would like to create a running total based on different parameters (YTD, Last year (starting at 1/1-12/31),Trailing 12 mo,etc).

 

I have a table that has Date in column 1, total in column 2. 

 

I have the DAX below caculating a running total, how would i configure it to match the parameters above? 

 

Running total =
CALCULATE (
       SUM ( Total Column ),
       ALL (Table Name),
       Date Column<= EARLIER (Date Column)
)

2 Replies