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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Dynamic forecast from actuals and budget

Hi all,

 

I'm trying to create a dynamic forecast based off budget and actuals.

The table below shows what I hope to achieve in the column on the right;

 

MonthRevenueBudgetDiffForecast
jan                            240.000          210.000                                                  30.000                                                210.000
feb                            200.000          180.000                                                  20.000                                                210.000
maa           210.000                                                 260.000
apr           175.000                                                 225.000
mei           219.000                                                 269.000
jun           280.000                                                 330.000
jul           265.000                                                 315.000
aug           204.000                                                 254.000
sep           220.000                                                 270.000
okt           250.000                                                 300.000
nov           230.000                                                 280.000
dec           220.000                                                 270.000

 

Budgetdiff is AmountRevenue - BudgetRevenue

As shown, the forecast should be budget + SUM(budgetdiff)

The problem is, AmountRevenue, Budget and BudgetDiff are all measures, and when I try to create my forecast measure, the result always adds the rows by month instead of the TOTAL sum of BudgetDif for the selected year.

I've tried this: 

Measure = [Budget]  + CALCULATE([BudgetDif], ALL(dimdate[MonthName]), FILTER(dimdate, dimdate[Year]))
but it doesn't work.
 
If anyone has an idea, it would be greatly appreciated, I've been stuck on this for days now!
Thanks 🙂
2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , Try like


Measure = [Budget] + CALCULATE(sumx(filter(values(dimdate[month]),not(isblank([Revenue]))),all(dimdate))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

Anonymous
Not applicable

Hi @amitchandak ,

 

Your formula helped me get the right results! Thank you so much!

I had to change your formula a little bit into

Forecast = Budget + CALCULATE(SUMX(VALUES(dimdate[Month]), not(isblank([Revenue])), ALLEXCEPT(dimdate, dimdate[year]))

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Try like


Measure = [Budget] + CALCULATE(sumx(filter(values(dimdate[month]),not(isblank([Revenue]))),all(dimdate))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

Hi @amitchandak ,

 

Your formula helped me get the right results! Thank you so much!

I had to change your formula a little bit into

Forecast = Budget + CALCULATE(SUMX(VALUES(dimdate[Month]), not(isblank([Revenue])), ALLEXCEPT(dimdate, dimdate[year]))

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.