Forum Discussion
Zarko_Tripunovic
Jul 01, 2020Copper Contributor
Removing duplicates in PowerQuery
Hi guys! Before I start with my question, please, take a look the pictures that I attached. My source is folder X which contains 3 files (but also can contain x files and problem is still there). ...
- Jul 01, 2020
Remove Duplicates keeps first of duplicated rows in order of how you sorted records before. However, to ensure it works correctly before removing duplicates you need to fix the table in memory. You may wrap it by Table.Buffer, or easier to add Index column->select column(s) for which remove duplicates->remove them->remove Index column.
Zarko_Tripunovic
Jul 02, 2020Copper Contributor
SergeiBaklan Thank You again for Your help. I used Table.Buffer and it works perfectly now. After You advised me to use this, I wasn't sure how to use it so I found it on https://exceleratorbi.com.au/remove-duplicates-keep-last-record-power-query/
SergeiBaklan
Jul 02, 2020Diamond Contributor
Sorry didn't explain Table.Buffer() in more details. But again, simplest way is to Add index->Sort->Remove index
Anyway, glad to know you sorted the issue out.