Power Query new or added items after a refresh

Kazlik

Board Regular
Joined
Dec 9, 2014
Messages
68
I have a table where there is no sequential ID or date that I can sort by. The user will be refreshed it frequently and they would like know what items have been added after each refresh. Is there a way to do this in Power Query?


Initial table

ID
1A'ea
GG14w
T2@T4g


After a refresh I want to note that 13d,4 has been added.

ID
1A'ea
GG14w
13d,4
T2@T4g
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
I'm not aware of a function like this in PQ. It even wouldn't work if you duplicate the queries, refresh just one & make a join for a comparison between them both, as it will then refresh the referenced query also.

So the only way I can think of is to write a macro that stores the last result list (before saving the file or before refreshing the new data) in a seperate table. Then do a join between both tables of LeftAnti-Type . This would give you all rows that are not included in the previous version.

Table.NestedJoin(StepNewTable,{"Col1"},OldTable,{"Col1"},"NewColumn", JoinKind.LeftAnti)
 
Upvote 0

Forum statistics

Threads
1,224,113
Messages
6,176,456
Members
452,728
Latest member
mihael546

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