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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
anlu20
Frequent Visitor

add a calculated column

Hi, 

 

I need help with the implementation of a new column. In this column, the realized sales must be substracted from the planned sales (from  the past quarters and current quarter) and distributed to the following quarters.

 

Examples:

 

Planning in the first quarter:

quarter         realized sales            planned sales           planning             
Q196.550€100.000€ 
Q20€100.000€101.150€
Q30€100.000€101.150€
Q40€100.000€101.150€
total96.550€400.000€303.450€

 

the sales in the first year are 96.550€. The difference between the realized and planned sales is 3.450€. The 3.450€ are distributed on the planned sales of the next quarters. (1.150€ are added to the planned values of the next quarters.)

 

when we are in the second quarter the planning should look like this:

quarter                  realized sales            planned sales            planning                
Q195.550€100.000€ 
Q2101.900€100.000€ 
Q30€100.000€100.775€
Q40€100.000€100.775€
total198.450€400.000€201.550€

 

3.450€ are missing from the first quarter. The difference between realized and planned sales from the second quarter are -1.900€ (100.000€ - 101.900€ = -1900€), so 1.900€ more were achieved than planned. The difference between realized and planned sales from Q1 and Q2 is 1.150€ (realized sales: 3.450€ + (-1.900€) = 1550€). 1550€ must be distributed over the quarters 3 and 4.

 

Thanks!

5 REPLIES 5
anlu20
Frequent Visitor

Hi,

I need help with the implementation of a new column. In this column, the realized sales must be subtracted from the planned sales (from the past quarters and current quarter) and distributed to the following quarters.

 

Examples:

Planning in the first quarter:

quarterrealized salesplanned salesplanning
Q196.550€100.000€ 
Q20€100.000€101.150€
Q30€100.000€101.150€
Q40€100.000€101.150€
total 96.550€400.000€303.450€

the sales in the first year are 96.550€. The difference between the realized and planned sales is 3.450€. The 3.450€ are distributed on the planned sales of the next quarters. (1.150€ are added to the planned values of the next quarters.)

 

when we are in the second quarter the planning should look like this:

quarterrealized salesplanned salesplanning
Q196.550€100.000€ 
Q2101.900€100.000€ 
Q30€100.000€100.775€
Q40€100.000€100.775€
total 198.450€400.000€201.550€

3450€ are missing from the first quarter. the difference between realized and planned sales from the second quarter are -1900€ (100.000€- 101.900€= -1.900), so 1900€ more were achieved than planned. The difference between realized and planned sales from Q1 and Q2 is 1550€ (realized sales: 3450€+(-1900€) = 1550€). 1550€ must be distributed over quarters 3 and 4


Thanks!

anlu20
Frequent Visitor

Hi,

I need help with the implementation of a new column. In this column, the realized sales must be subtracted from the planned sales (from the past quarters and current quarter) and distributed to the following quarters.

 

Examples:

Planning in the first quarter:

quarterrealized salesplanned salesplanning
Q196.550€100.000€ 
Q20€100.000€101.150€
Q30€100.000€101.150€
Q40€100.000€101.150€
total 96.550€400.000€303.450€

the sales in the first year are 96.550€. The difference between the realized and planned sales is 3.450€. The 3.450€ are distributed on the planned sales of the next quarters. (1.150€ are added to the planned values of the next quarters.)

 

when we are in the second quarter the planning should look like this:

quarterrealized salesplanned salesplanning
Q196.550€100.000€ 
Q2101.900€100.000€ 
Q30€100.000€100.775€
Q40€100.000€100.775€
total 198.450€400.000€201.550€

3450€ are missing from the first quarter. the difference between realized and planned sales from the second quarter are -1900€ (100.000€- 101.900€= -1.900), so 1900€ more were achieved than planned. The difference between realized and planned sales from Q1 and Q2 is 1550€ (realized sales: 3450€+(-1900€) = 1550€). 1550€ must be distributed over quarters 3 and 4


Thanks!

lbendlin
Super User
Super User

"The 3.450€ are distributed on the planned sales of the next quarters."

 

Which quarters? The remaining quarters of the same year?  If so - what should happen in Q4?

The amount must be divided among the remaining quarters. If you are in the fourth quarter, the column "salesplanning" must be empty.

No idea if this is what you are after?

 

lbendlin_1-1643680567113.png

 

See attached.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors