Forum Discussion

newbie9292's avatar
newbie9292
Helper II
5 years ago
Solved

Help with cummulated data

Hi,

I am trying to create a report and want cummulated figures for each month.

This how it looks at the moment

 

But my desired output is:

 

Month NameKum_AE
January539,294.19
February1,877,692.36
March2,643,781.88
April3,552,421.63
May3,780,571.37
June5,674,237.05
July5,674,237.05
August5,674,237.05
September5,674,237.05
October5,674,237.05
November5,674,237.05
December

5,674,237.05

 

I have a date_dim table and the other data table which has only data till June. So for the rest of the months it should copy the cummulated value till June.

  • Fowmy's avatar
    Fowmy
    5 years ago

    newbie9292 

    I am not sure how your formula is built but you can follow teh following pattern

    Cumm = 
    
    CALCULATE(
        SUM(financials[ Sales]),
        FILTER(
            ALLSELECTED(Dates),
            Dates[Date] <= MAX(Dates[Date])))
    

4 Replies

  • Fowmy  Thanks for your reply. But then how do I carry forward the cummulative balance in June to the other months?

    • Fowmy's avatar
      Fowmy
      Super User

      newbie9292 

      I am not sure how your formula is built but you can follow teh following pattern

      Cumm = 
      
      CALCULATE(
          SUM(financials[ Sales]),
          FILTER(
              ALLSELECTED(Dates),
              Dates[Date] <= MAX(Dates[Date])))