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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SClarke501
Frequent Visitor

Merging the differences between 2 tables

I've looked around and I'm not sure if this is possible using Power Query.

 

I have multiple excel files, all containing the exact same table. Same columns, same rows etc. Except the rows are filled in by different teams using their own copy of the file. They want them all merged into one master file.

 

I've only been able to append them to eachother which results in duplicated IDs.

 

Example with dummy data:

 

Table 1:

IDStatusHours Taken

123

  
456Complete4
789Complete7.65

 

Table 2:

IDStatusHours Taken

123

Complete6.43
456  
789  

 

Output Table:

IDStatusHours Taken

123

Complete6.43
456Complete4
789Complete7.65
4 REPLIES 4
Idrissshatila
Super User
Super User

Hello @SClarke501 ,

 

You could add a column for each table to specify the team.

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




How exactly would that produce my desired output?

 

The team is largely irrelevant. It just needs to merge into one master document where all rows are filed in. Your solution would give me the same duplicated rows but with the team next to it, which doesn't allow me to eliminate rows?

Anonymous
Not applicable

Hi @SClarke501 ,

 

You can use append queries and filter on column values.

vcgaomsft_0-1674194224597.png

vcgaomsft_1-1674194255347.png

result:

vcgaomsft_2-1674194286141.png

An additional step can be taken to remove duplicate records if necessary.

let
    Source = Table.Combine({Table1, Table2}),
    #"Filtered Rows" = Table.SelectRows(Source, each ([Status] = "Complete")),
    #"Removed Duplicates" = Table.Distinct(#"Filtered Rows")
in
    #"Removed Duplicates"

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

The problem is there will be blank rows and I don't want to get rid of them. Filtering them out after the fact will only show the ones that have been filled in by someone, but this is for a master record that contains everything.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.