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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Eureka
Advocate I
Advocate I

Measure to combine Actual and Forecast

Hello,

 

I have a use case where i have a table with Forecast data, another table with actual data. 

I want to create a measure that will combine the forecast and the actual in the same measure.

For month before the forecast date the idea is to take the actuals and for the months after the forecast date the idea is to take the forecast data.

ActualsForecastDateForecast date New measure
40 janv-23avr-2340
56 févr-23avr-2356
68 mars-23avr-2368
5351avr-23avr-2351
4844mai-23avr-2344
5667juin-23avr-2367
5660juil-23avr-2360
5270août-23avr-2370
4865sept-23avr-2365
5161oct-23avr-2361
 47nov-23avr-2347
 38déc-23avr-2338

 

 

How can I achieve this?

 

Thank you 

1 ACCEPTED SOLUTION
Eureka
Advocate I
Advocate I

I tried this: 
New measure = sumx(VALUES('Time'[Date]), if(ISBLANK(Forecast), Actuals, BLANK())) + Forecast
 
It seems to work

View solution in original post

3 REPLIES 3
Eureka
Advocate I
Advocate I

I tried this: 
New measure = sumx(VALUES('Time'[Date]), if(ISBLANK(Forecast), Actuals, BLANK())) + Forecast
 
It seems to work
sanalytics
Super User
Super User

Hello @Eureka 

 

Based on your data please try below measure

New Measure =
SUMX(
     'Table',
     IF(
         ISBLANK( 'Table'[Actuals] ),
         'Table'[Forecast],
    IF(
         ISBLANK( 'Table'[Forecast] ),
         'Table'[Actuals],
    IF(
        'Table'[Actuals] <> BLANK() &&
        'Table'[Forecast] <> BLANK(),
        'Table'[Forecast]
    )
    ) ) )
 
Hope it will help you,
 
Regards
sanalytics
If it is your solution then please like and accept it as solution
Eureka
Advocate I
Advocate I

So far  I have tested that: 

New measure = 

f( ISBLANK(CALCULATE(SUMX(values(Date),Forecast))), Actuals, Forecast)
 
It's working when I show the date in the table when I remove it is getting me only forecast data.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.