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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Calculating delta between actuals and forecast in the same column

Hello

 

Is it possible to have a measure that calculates the delta between ex actuals and forecast, when i am using a flat excel file?

 

Or do i need to have the different scenarios in different columns? 

 

YearMonthScenarioAmount
2021FebruaryForecast 100
2021FebruaryActuals95
5 REPLIES 5
Anonymous
Not applicable

I don tknow how to attach a external table. Sorry about that.

 

MonthFiscal YearScenarioAccountAmount
NovemberFY21ForecastNet Revenue100
NovemberFY21P ForecastNet Revenue110
NovemberFY21ActualsNet Revenue90
NovemberFY21Last yearNet Revenue95
NovemberFY21PlanNet Revenue115
NovemberFY21ForecastCOGS80
NovemberFY21P ForecastCOGS81
NovemberFY21ActualsCOGS79
NovemberFY21Last yearCOGS75

I am trying to get a delta result from comparing the various scenarious against eachother but holding year, account etc the same. 

 

So for a delta between line 3 and line 1 would have a delta of 10

 

Im a trying to build a simple P&L that shows:

AccountActualsForecastDelta
Net revenue9010010

 

I would like to be able to calculate that delta with out having to have a column for each scenario.

 

Is that possible?

ERD
Community Champion
Community Champion

Hi @Anonymous ,

I'm not sure about the result you want to achieve (only to count delta between Actuals & Forecast / build the table with columns Account|Actuals|Forecast|Delta), but here is a simple measure just counting delta:

#ActualsVsForecastDelta = 
var actuals = CALCULATE(MAX(FindDelta[Amount]),
FindDelta[Scenario] = "Actuals")
var forecast = CALCULATE(MAX(FindDelta[Amount]),
FindDelta[Scenario] = "Forecast")
return
forecast - actuals

ERD_0-1617349403770.png

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

ERD
Community Champion
Community Champion

Hello @Anonymous ,

If you just have 2 scenarios (Actuals vs Forecast), then it might be easier to Pivot Scenario column in Power Query using Amount column as values. In this case you'll get 2 columns: Actuals column with values and Forecast column with values. Finding difference will be a very short and simple task in this case.

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

Anonymous
Not applicable

Hi ERD,

 

Thank you for the suggestion. My illustration above was just that. My data file is several thousands lines with 6 diffent scenarios. All the scenarios is listed in the same column and i would very much like to have a delta between all of them. Is that possible wihtout changing my data setup?

ERD
Community Champion
Community Champion

It would be easier to help if you provide a larger table with data, not in a picture, and a final result you want to achieve (might be a picture).

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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