Forum Discussion

kolturra's avatar
kolturra
Helper IV
7 years ago
Solved

Cummulative SUM DAX ERROR

Hi,   I have issue DAX fomula with running total. I have done running total calculation in column F, what i have identify that my DAX formula is not populating same like manual calculation. Differe...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Sorry about that.  Try this one:

    Column = 
    var __CurrentCreatedTime = Table2[CreatedTime]
    RETURN
    
    CALCULATE(
        SUM( Table2[Energy] ),
        FILTER( 
            ALL( Table2 ),
            __CurrentCreatedTime >= Table2[CreatedTime]
        )
    )

    Did a check, and looks like the new column is what you would want:

    Also, be sure to set your data types in Power Query.