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

Forecast/Actuals Calculations

Hi All, I have tw tables Actuals and forecast that are connected through calendar table via calendar date.

 

I want to create a matrix where I can see one column that represents Actual/Forecast i.e. if actuals are not available then forecast amount should be added but if actual is available then only actuals should be updated in column.

 

Below is the expected output.

 

YearQtrActualsForecasted Forecasted/Actuals
2022Q1500300500
2022Q2600400600
2022Q30150150
2022Q40500500
  110013501750

 

I tried to create a dax but not getting the correct output

 

Actuals/Forecast =
IF (
    HASONEVALUE (Date Dim'[calendar date]),
    IF ( [Actuals] = 0,[Forecast Amount],[Actuals] ),
    SUMX ('RPT Date Dim',
        IF ( [Actuals] = 0, [Forecast Amount],[Actuals] )
    )
 
 
Please help.
 
1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

You can do this much easier if you keep the Actuals blank (rather than at 0)

 

Forecasted/Actuals = COALESCE([Actuals],[Forecasted])

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

You can do this much easier if you keep the Actuals blank (rather than at 0)

 

Forecasted/Actuals = COALESCE([Actuals],[Forecasted])

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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