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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
JackDM313
New Member

Merge 2 columns from 2 tables and list unique rows

Hi, 

 

I have 2 tables, with 2 columns having the same information and the 3rd different information. 

 

Table1:

JackDM313_2-1683529156327.png

Table2:

JackDM313_3-1683529169955.png

 

I want to merge both ID and Team columns into a new table (Table3) and remove all duplicates so only unique values display

 

Outcome (Table3):

JackDM313_4-1683529542942.png

 

Both Table1 and Table2 have relationships to 2 other tables: 'Date' and 'Team' where the date is linked to a date column and team is linked to a team column. 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@JackDM313 , Seem to me like left anti join in Power query Table1 to Table2 and then select ID and Team use remove duplicate

 

In DAX

Distinct(except(summarize(table1, [ID], [Name]) ,summarize(table2, [ID], [Name]) ))

 

refer if needed

Power BI: Power Query Functions one must know
: https://www.youtube.com/watch?v=cN8AO3_vmlY&t=36407s
Power BI - Cheat Sheet: Power Query Functions one must know
https://amitchandak.medium.com/cheat-sheet-power-query-functions-one-must-know-a8531b6e321a

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@JackDM313 , Seem to me like left anti join in Power query Table1 to Table2 and then select ID and Team use remove duplicate

 

In DAX

Distinct(except(summarize(table1, [ID], [Name]) ,summarize(table2, [ID], [Name]) ))

 

refer if needed

Power BI: Power Query Functions one must know
: https://www.youtube.com/watch?v=cN8AO3_vmlY&t=36407s
Power BI - Cheat Sheet: Power Query Functions one must know
https://amitchandak.medium.com/cheat-sheet-power-query-functions-one-must-know-a8531b6e321a

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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