Forum Discussion

Sagejah9's avatar
Sagejah9
Icon for Helper III rankHelper III
5 years ago

Calculating cumulative planned amount

Hi, I would like to create a visual that shows the cumulative planned amount over months. 

CategoryApprovedJulyAugSept Oct
A1213 3
B11    
C42422
D7 2  
E165  4

 

the approved is for the month of June. I would like to calcualte the accumulative approved. to find July's approve it will be the previous month's approved(June) + the amount set for july 

July Approved
13
11
6
7
21

 

4 Replies

  • Sagejah9 , I doubt logic is matching with description, can you explain with an example

     You should renamed approved as Jun , and unpivot the data

     

    Convert month into dates and then work

    • Sagejah9's avatar
      Sagejah9
      Icon for Helper III rankHelper III

      amitchandak , Ok lets say I have a set amount of persons for each category that I planned to start the year with and lets say the year starts on June(Approved). I may want to add a few more in the future months. I woul like to calculate the cumulative approved for the other months and this is done by adding the approved for the previous month to the future amount in the current month. so July would be the approved for june( what we start the year with) + the future amount if any were given. and August would be the previous month's approved + August future amount and so on. It is almost like a ytd calculation. 


      • Sagejah9's avatar
        Sagejah9
        Icon for Helper III rankHelper III

        amitchandak  Hope this explains better

        If I have the approved column by it self for each category, I would like to add the approved to the first month of the year planned and for the second month the previous month calculation is added to the second month planned. 
        Approved persons to start the year

        CategoryApprovedYear
        A132021
        B112021
        C62021
        D72021
        E212021

         

        Persons to plan to be added in upcoming months

        CategoryJan-2021Feb-2021Mar-2021Apr-2021
        A12 2
        B4   
        C 31 
        D3411
        E1 1 

         

        CUMULATIVE APPROVE (RESULT TABLE )

        CategoryJan-2021Feb-2021Mar-2021Apr-2021
        A14161618
        B15151515
        C691010
        D10141516
        E21222323