I am working on a project, where a column needs cumulative summing. How do I find the cumulative sum for a column and store in another column.?
I expect the output as shown:
I am working on a project, where a column needs cumulative summing. How do I find the cumulative sum for a column and store in another column.?
I expect the output as shown:
Assuming you have a date table and are using that to calculate you running total; you could follow the DAX pattern provided below or just amend it to fit your needs:
CumSum :=
VAR MaxDate =
MAX ( 'Date'[Date] )
RETURN
CALCULATE ( SUM ( 'Table'[A] ), 'Date'[Date] <= Maxdate, ALL ( date ) )