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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Two excel files - remove duplications and create a new one

hi all

 

I am sure its super easy but I am not sure why I am not able to sort it out

 

I have two files of sales orders, in the second one I have some duplicated sales orders , so i want to create a third one , merging both but without duplicated .

 

Also I have another file with all order numbers but with no customer name that is in the first one, so I will do a relationship with the sales order number and I hope to have all the results.

 

How can I do the first step? sorry if I have not explained very good

 

Thanks!

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

Hi @Anonymous ,

 

You could use Append Queries feature in Query Editor.

https://docs.microsoft.com/en-us/power-query/append-queries 

Then delete the duplicate rows.

https://docs.microsoft.com/en-us/power-query/working-with-duplicates#remove-duplicates 

Or you could create a new table use DAX function DISTINCT() and UNION().

new table = DISTINCT(UNION('Table','Table (2)'))

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could use Append Queries feature in Query Editor.

https://docs.microsoft.com/en-us/power-query/append-queries 

Then delete the duplicate rows.

https://docs.microsoft.com/en-us/power-query/working-with-duplicates#remove-duplicates 

Or you could create a new table use DAX function DISTINCT() and UNION().

new table = DISTINCT(UNION('Table','Table (2)'))

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@Anonymous , Not very clear .

Append in Power Query and delete duplicates

 

Merge in power Query and Aggregate

 

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

Delete duplicate https://www.youtube.com/watch?v=Hc5bIXkpGVE

https://radacad.com/power-bi-aggregation-step-1-create-the-aggregated-table

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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