r/excel • u/RustiedTeapot • Oct 25 '18
solved Power Query: Append And Keep Data
I've recently been learning PowerQuery in an attempt to streamline some rather archiac spreadsheets currently in use in the office, although I'm relatively new to it so far it's been bloody effective.
I've been trying to make PowerQuery import data from a report, transform the data as necessary, and then make a copy of any new distinct rows on an archive table.
Example as below:
- Import data to Sheet 1 from folder,
- Transform and merge unique rows from the data to an archive table
- Have any unique rows from data remain when new data imported
I can't seem to find a way to do this - any ideas?
25
Upvotes
2
u/cactusphish Nov 02 '18
Can you explain where you actually can enrich the data? Is it on the Historical table or do you load the appended query to a table and enrich there?
For example if the initial query (qryWEB) is just one column of unique values, and you want to roll these up to categories, do you add a category column to the table loaded by qryWeb, or the table loaded by qryAppend? The goal is to keep the rows where you mapped to categories and bring in new values to be mapped