Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Caluculate actuals and forecast

fcjun2021nov decjanfebmaraprmayjunjulaug septoct
a100200300400500600700800900100015002000
b5060708090100110120130140150160
c102030405060708090100110120
volume       333    

 

 

fcmay2021nov decjanfebmaraprmayjunjulaug septoct
a100200300400500600700600900100015002000
b5060708090100110160130140150160
c102030405060708090100110120
volume       280   

 

 

here the month jun actual is 333 (avg of dept a,b,c) and forcast should be 280 that is coming from previous month so when i select month jun and dept a it should be 800 other than a,b,c i need to display  333 as actual ,fc will be change according dept, how can i achieve it?

3 Replies

  • Anonymous , Is this your raw data structure. If so, you need to unpivot data.

     

    Second, can you explain the calculation of 333  and 280 by example 

    • Anonymous's avatar
      Anonymous
      Not applicable

      Raw data is same like this only,333 and 280 are average of that column

      • amitchandak's avatar
        amitchandak
        Icon for Super User rankSuper User

        Anonymous , In the power query, create one more copy of the table (T1_Copy). Use Group by and take Avg of all required columns

         

        Now Append the tables T1 and T1_copy .(Make sure column name are same for the columns you want to append )

         

        Do same for another table