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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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