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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Matty
Helper II
Helper II

How to combine lists and remove duplicates in Power Query...

Hi,

 

I have two lists like as follows:

 

List1
Team1
Team2
Team3
Team4

 

List 2
Team1
Team2
Team5
Team4

 

I want to use Power Query to append the two lists and then remove the duplicates.  This would result in a list like this:

 

All
Team1
Team2
Team3
Team4
Team5

 

Can someone help me with the syntax needed to achieve this?  I'm running into problems because the fields are called different things, so Table.Combine isn't working as desired.

 

Thanks,

 

Matty

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Matty

For the two lists, select "Append as new", then select "Remove rows"->"Remove duplicates".

6.png

7.png

 

 

Best Regards

Maggie

View solution in original post

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @Matty

For the two lists, select "Append as new", then select "Remove rows"->"Remove duplicates".

6.png

7.png

 

 

Best Regards

Maggie

Seward12533
Solution Sage
Solution Sage

Assuming your doing this Power Query. Make a Refence copy of of one of your lists and rename the column headers so they are the same prior to the merge. You can stop the interim query from returning values by combining the queries manually in advanced editor or by right clicking the query and I checking the Load To portion.

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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