Forum Discussion

RHerrera's avatar
RHerrera
Frequent Visitor
7 years ago
Solved

Calculated cumulative column with a complication

Hi, I have been trying to get cumulative values in a calculated column but I couldn't find a way to re-start the cumulative calculation once there is a change from Q1 to Q2 to Q3 (Q=quarter of a day)...
  • Zubair_Muhammad's avatar
    7 years ago

    RHerrera

     

    try this one

     

    =
    CALCULATE (
        SUM ( Table1[Value] ),
        FILTER ( Table1, [Q] = EARLIER ( [Q] ) && [Time] <= EARLIER ( [Time] ) )
    )