Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

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 3
amitchandak
Super User
Super User

@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
Not applicable

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

@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

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.