Forum Discussion

tony_tohme's avatar
tony_tohme
New Member
4 years ago

Cumulative Value

Hi There

 

I have this table:

FunctionDateStatusCount
A6/1/2021DONE3
A6/9/2021NOT DONE2
A6/23/2021DONE1
A8/11/2021DONE7
B6/11/2021DONE7
B7/22/2021NOT DONE6

 

How can I get a cumulative value column for each function based on month and for status = all and status = DONE, like this:

FunctionDateStatusCountcumulative value allcumulative value DONE
A6/1/2021DONE333
A6/9/2021NOT DONE25 
A6/23/2021DONE164
A8/11/2021DONE71311
B6/11/2021DONE777
B7/22/2021NOT DONE613 

 

What I am trying to get is a graph line chart for function A showing the cumulative value all and cumulative value DONE  for June, and August and another graph same thing for function B.

 

Thank you very much

6 Replies

    • tony_tohme's avatar
      tony_tohme
      New Member

      Thank you, I tried your version and I got the same result as my reply above for the cumulative all, not sure if this is the expected result...

  • Hi,

    Try this calculated column formulas

    Cumulative count = CALCULATE(SUM(Data[Count]),FILTER(Data,Data[Function]=EARLIER(Data[Function])&&Data[Date]<=EARLIER(Data[Date])))

    Cumulative count - Done = if(Data[Status]="Not Done",BLANK(),CALCULATE(SUM(Data[Count]),FILTER(Data,Data[Function]=EARLIER(Data[Function])&&Data[Status]="Done"&&Data[Date]<=EARLIER(Data[Date]))))

    Hope this helps.

    • tony_tohme's avatar
      tony_tohme
      New Member

      The cumulative Done worked , but the Cumulative all is coming up with weird number not sure if they're true.

      function DatestatusCount Cumulative allCumulative doneDate
      A4/1/2021done3 332021-04-01 0:00
      A5/1/2021done2 552021-05-01 0:00
      A6/1/2021done5 39102021-06-01 0:00
      A6/1/2021not done1 46172021-07-01 0:00
      A6/1/2021not done2 28222021-08-01 0:00
      A7/1/2021done7 64252021-09-01 0:00
      A7/1/2021not done3 126292021-10-01 0:00
      A8/1/2021done5 144332021-11-01 0:00
      A9/1/2021not done1 106352021-12-01 0:00
      A9/1/2021done3 57 2022-01-01 0:00
      A10/1/2021not done5 124 2022-02-01 0:00
      A10/1/2021done4 73 2022-03-01 0:00
      A10/1/2021not done1 74 2022-04-01 0:00
      A11/1/2021not done1    
      A11/1/2021done4    
      A11/1/2021not done1    
      A12/1/2021not done3    
      A12/1/2021done2    
      A1/1/2022not done4    
      A2/1/2022not done4    
      A2/1/2022not done1    
      A3/1/2022not done11    
      A4/1/2022not done1    
              
              
      • Ashish_Mathur's avatar
        Ashish_Mathur
        Super User

        Hi,

        As you can see in my screenshot, my formulas are working fine.  I am not sure of what you are doing.  Share the link from where i can download your PBI file with the formula already written there.