Import from folder but append new data only (avoid duplicates)

Melimob

Active Member
Joined
Oct 16, 2011
Messages
396
Office Version
  1. 365
Hi - I'm very new to G&T/Power BI.

I've managed to create a set of queries based on importing a file from a folder. This is currently YTD up to 8Nov19.
Each week the same file will be dropped in for the user to refresh all queries however, in case the period of data overlaps, I want to only ensure the new records are added and avoid having duplicates.

I want to account for these scenarios:
1) if they replace the original YTD file with later data than original (think this is fine as it is how it should work)
2) if they add in a new YTD file without removing the original (this shouldn't be added as would be dupes)
3) if they add a weekly file an then at end of month, add a monthly file, want to ensure it only adds the new records

Any ideas on best practice for this as I'm sure it's common scenario?
(I've already filtered to ensure only the correct file extensions are imported)

many thanks in advance
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,226,130
Messages
6,189,186
Members
453,527
Latest member
marvinzkie26

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top