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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
deboec
Helper I
Helper I

Fill blanks in table with values from other table

I have 2 Excel files with one table each.

One table contains data with >500 rows and specific columns. 

There are blank values in one importanct column for me in this table which need to be filled.

 

I have another Excel file with a table that contains the missing data / blanks of the first table.

This second table has the identical structure as the first table but only with the data that is incomplete in table 1.

 

Can I merge / append the two table so that I have the structure and rows of table 1 but filled with the missing data that comes from table 2?

 

Thank you

 

Sample file:

table 1:

hr_data.png

table 2:

hr_data_addition.png

 

1 ACCEPTED SOLUTION
ERD
Super User
Super User

Hi @deboec ,

As far as I understand, you need to get Project column value and it can be looked up by Id column.

1. Merge queries in your first table, use Id columns in both tables, Left Outer join kind.

2. Enpand the needed column (Project).

3. Does your second table contain ONLY missing values from the first one?

If so, you can Merge these columns (choose 2 columns: initial Project column & merged Project column), click Transfrom > Merge Columns.

If not, click Add Column > Custom Column and 

if [Project] = "" then [T2.Project] else [Project]

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

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

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

View solution in original post

1 REPLY 1
ERD
Super User
Super User

Hi @deboec ,

As far as I understand, you need to get Project column value and it can be looked up by Id column.

1. Merge queries in your first table, use Id columns in both tables, Left Outer join kind.

2. Enpand the needed column (Project).

3. Does your second table contain ONLY missing values from the first one?

If so, you can Merge these columns (choose 2 columns: initial Project column & merged Project column), click Transfrom > Merge Columns.

If not, click Add Column > Custom Column and 

if [Project] = "" then [T2.Project] else [Project]

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

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

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors