Forum Discussion

UrAvgWally's avatar
UrAvgWally
Icon for Helper I rankHelper I
4 years ago
Solved

Cumulative Total , no dates

Hi all,   I am trying to turn this line chart into a cumulative chart :      The data Source looks like this , the X axis is the period Column   The Y Axis is based on these values...
  • Greg_Deckler's avatar
    Greg_Deckler
    4 years ago

    UrAvgWally Yeah, there is a stray ) in there:

    Measure = 
    VAR PNo = MAX(PeriodicTable[PeriodNo])
    VAR Periods = 
      SELECTCOLUMNS(
        FILTER(
          ALL(PeriodicTable), 
          [PeriodNo] <= PNo
        ),
        "__PeriodMFMA",
        PeriodicTable[PeriodMFMA]
      )
    VAR Table = FILTER(UnpivotCP,[PeriodMFMA] IN Periods)
    RETURN
    SUMX( Table,[Value])