Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Need help with running total

I am atemting to get a running total from the start of wnd of 2019 to the current date. Included is a picture of my dax code that is not currently working. Thanks!  
  • Anonymous's avatar
    Anonymous
    4 years ago

    I was able to fix it by making a my own date table and using this code:

    Total Revenue running total in Quarter =
    CALCULATE(
        SUM('Matt-DataForBI'[Total Revenue]),
        FILTER(
            ALLSELECTED('Date'[Quarter]),
            ISONORAFTER('Date'[Quarter], MAX('Date'[Quarter]), DESC)
        )
    )