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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
CraigMoran
New Member

Forecast modeling for Financials

I have actuals coming in to my model each month. I also have a forecast for the remiander of the year. How can I build a equation that will work in power BI like I have in excel.

 

=($AE56-SUM($S56:W56))*(X51/SUM(X51:$AD51))

AE56 is total bestView

s56-w56 is actuals

X51 is June % of spread

x51-ad51 is % of each month without actuals only forecast

 

CraigMoran_0-1627064896381.png

I have built measures to give me %. and measures to take bestView-actuals. 

 

1 ACCEPTED SOLUTION

Hi @CraigMoran ,

 

Not clear your model, I created the following sample data and measure. Does this match your expected output?

 

Measure = 
CALCULATE(
    SUM('Table'[Amount]),
    ALLEXCEPT( 'Table', 'Table'[Type] )
) - CALCULATE(
        SUM('Table'[Amount]),
        FILTER( ALL('Table'), 'Table'[Type] = MAX('Table'[Type]) && 'Table'[Date] < MIN('Table'[Date]) )
    ) * SUM('Table'[Value%]) / CALCULATE(
            SUM('Table'[Value%]),
            FILTER( ALL('Table'), 'Table'[Type] = MAX('Table'[Type]) && 'Table'[Date] >= MIN('Table'[Date]) )
        )

vkkfmsft_0-1627355848761.png

image.png


If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

 

View solution in original post

4 REPLIES 4
v-kkf-msft
Community Support
Community Support

Hi @CraigMoran ,

 

What do the different rows in your data mean? Why do you use the forecast data in line 51 instead of data in line 56 for calculations?

 

Best Regards,
Winniz

So the 3 rows are % of actuals, budget and Bestview. So in finance we set a budget a spread it over the 12 months before the year starts. As actuals come in we have adjust the % spend in each month to hit the yearly budget amount. The slight changes are bestviews that hyappen through out the year. I hope that was a good answer to your question 

Hi @CraigMoran ,

 

Not clear your model, I created the following sample data and measure. Does this match your expected output?

 

Measure = 
CALCULATE(
    SUM('Table'[Amount]),
    ALLEXCEPT( 'Table', 'Table'[Type] )
) - CALCULATE(
        SUM('Table'[Amount]),
        FILTER( ALL('Table'), 'Table'[Type] = MAX('Table'[Type]) && 'Table'[Date] < MIN('Table'[Date]) )
    ) * SUM('Table'[Value%]) / CALCULATE(
            SUM('Table'[Value%]),
            FILTER( ALL('Table'), 'Table'[Type] = MAX('Table'[Type]) && 'Table'[Date] >= MIN('Table'[Date]) )
        )

vkkfmsft_0-1627355848761.png

image.png


If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

 

daxer-almighty
Solution Sage
Solution Sage

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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