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
Anonymous
Not applicable

Forecast/Actuals Calculations

Hi All, I have two tables Actuals, and forecasts connected through a 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 the forecast amount should be added but if actual is available then only actuals should be updated in the 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 REPLY 1
Pragati11
Super User
Super User

HI @Anonymous ,

 

Is it possible for you share a picture of your data model here? I want to see how these tables are related to each other and on what columns the relationship has been made.

Also share some sample data if possible.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/td-p/1447523/jump-to/first-unread-message

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.