Forum Discussion
In Power Query Editor, how to remove the duplicates while also removing the original
- 5 years ago
For that, you need to do an extra thing.
In step 1 of grouping, go to Advance section and add an aggregation to get all rows. Something like this:
2) Then filter out the rows having Duplicates count as 1 as below:
3) Then expand other columns as below:
The end output will give you all your required columns.
StefanoGrimaldi , thank you for your reply.
but your way can only help to remove the duplicated one, I also need to remove the original one.
Anonymous If the only instances you want to delete are the ones visible in the screenshot, you might just filter out the rows that you do not want, using the 'identifier' column.
P.S. The last red brackets in the picture aren't actually duplicates 🙂
- Anonymous5 years agoNot applicable
thank you for your reply!
Unfortunately, I really need to filter those rows out programatically. Those red lines are the rows that our shippers ship by mistake.
Do you know other solutions ?