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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
LouiseB1409
Frequent Visitor

Joining tables - data missing

Hello,

 

I am trying to join two data tables - actuals and forecast, with the actuals table being the source (or master or whatever), with the common columns being account, parent account, grandparent account, cost centre, period. When i create a table to show actuals vs forecast data from the forecast column is misisng becasue there isn't anyhting for actuals. Is there a way to pull through forecast data without actuals data being present?

 

Example below, there is no data in actuals for grandparent account 3 but there is in forecast. i am getting the first table but need the second.

 

Grandparent [Actuals Table]Actuals [Actuals Table]Forecast [Forecast table]
11255654
21253236
4578621456

 

Grandparent [Actuals Table]Actuals [Actuals Table]Forecast [Forecast table]
11255654
21253236
3054883
4578621456
1 REPLY 1
Ghhousuddin
Resolver I
Resolver I

Yes, you can use a LEFT JOIN to include the forecast data even when there is no corresponding actuals data. Here's how you can modify your join to achieve this:

1. Open Power Query Editor and select the "Actuals" table.
2. Select the "Merge Queries" option from the "Home" tab in the ribbon.
3. In the Merge dialog box, select the "Forecast" table as the second table to merge.
4. Select the columns that you want to join on (account, parent account, grandparent account, cost centre, period).
5. In the Join Kind section, select "Left Outer (all from first)" as the type of join to perform.
6. Click OK to create the merged table.

This will create a new table that includes all the rows from the "Actuals" table, as well as any matching rows from the "Forecast" table. For any rows where there is no corresponding data in the "Actuals" table, the values in the "Actuals" columns will be shown as blank, but the values in the "Forecast" columns will still be included.

To replace the blank values in the "Actuals" columns with 0, you can use the following steps:

1. Select the columns in the merged table that contain the "Actuals" data.
2. Click on the "Replace Values" option in the "Transform" tab in the ribbon.
3. In the Replace Values dialog box, enter a blank value in the "Value to Find" field, and enter 0 in the "Replace With" field.
4. Click OK to replace the blank values with 0.

Once you have completed these steps, you should have a merged table that includes both actuals and forecast data, with 0 values in the "Actuals" columns for any rows where there is no corresponding actuals data.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 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.