Forum Discussion

shishir999's avatar
shishir999
Helper II
7 years ago
Solved

Calculate Difference between change in value

Hi,   In general, we calculate the Cummulative Total of the values, but my requirement is to get the each day change in value based on Cummulative values. See the attachement.      Left si...
  • Zubair_Muhammad's avatar
    7 years ago

    shishir999

     

    Try this pattern

     

    Calc col =
    [Value]
        - MINX (
            TOPN (
                1,
                FILTER ( Table1, [Ctg] = EARLIER ( [Ctg] ) && [Date] < EARLIER ( [Date] ) ),
                [Date], DESC
            ),
            [Value]
        )