Forum Discussion

lliu08's avatar
lliu08
Helper I
6 years ago
Solved

Cumulative Total Dax

Hello community!    I have been stuck with trying to do the cumulative value for a loooonnnggg time, please help!    I have a table with 3 columns, Item_ID, Accounting_Date and Costs. I am trying...
  • lliu08's avatar
    6 years ago

    I came up with the solution that solved my problem 🙂 

     

    CALCULATE(SUM(Costs),GROUPBY (Table_Name,Table_Name[Item_ID]),FILTER(ALL(Table_Name), Accounting_Date <= Accounting_Date)))

     

     

    Thank you everyone who helped to answer my question.