Forum Discussion

OLoughanD's avatar
OLoughanD
Helper I
7 years ago
Solved

Running Total

Want to get a running total for each date by SalesReps, ordering by date (ie. Month column) ascending. I have highlighted in red what I am trying to achieve.  
  • HotChilli's avatar
    7 years ago
    RunningTote = VAR _SPerson = TableX[sPerson]
                  VAR _Day = TableX[day]
    RETURN
        CALCULATE(SUM([dTarget]), 
            FILTER(TableX,
                TableX[day] <= _Day && 
                TableX[sPerson] = _SPerson))

    Create a calculated column, swap in your table and column names.

     

    Quick Tip : For better help, post sample data rather than a picture of the data