Forum Discussion

vijaykumarj19's avatar
vijaykumarj19
Microsoft Employee
5 years ago
Solved

Cumulative total adding previous total twice

Axis Actual Cummulative    a1 5 5 5 a2 10 20 5+5+10 a3 15 50 20+5+10+15 a4 20 100 50+5+10+15+20 a5 25 175 100+5+10+15+20+25   Required cummulative column 
  • v-jingzhang's avatar
    v-jingzhang
    5 years ago

    vijaykumarj19 I use below measures to get the output. Put [Total 1] in [Total 2].

    Total 1 = SUMX(FILTER(ALL('Tbl3'),'Tbl3'[Axis]<=MAX('Tbl3'[Axis])),'Tbl3'[Value])
    Total 2 = SUMX(FILTER(ALL('Tbl3'),'Tbl3'[Axis]<=MAX('Tbl3'[Axis])),[Total 1])

    I am struggling to get the output with only one measure but haven't figured it out.