• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Merge NEW data from Table

Hello,

I have two Power Query Tables, with one column that can link (have the same data in both tables) "Financial #" Table A has a "$ committed" column, "$ Spent" column and a "$ Remaining" Column. Table B has only a "$ Spent Column". I need to append or append new Table A adding on only what is not already on Table A. So the result would be like the following:

Table A
Financial #CommittedSpentRemaining
1231005050
45620075125
78915010050

Table B
Financial #Spent
12350
45675
789100
890200
90125

Table C (or merge/Appended Table A)
Financial #CommittedSpentRemaining
1231005050
45620075125
78915010050
890200
90125
There are plenty more columns and rows (3K+) and this will be updated monthly so it wouldn't be any easy Vlookup and delete.

Any and all help is appreciated. Thanks
 
Load each table to PQ and then merge

let
Source = Table.NestedJoin(Table2, {"Financial #"}, Table1, {"Financial #"}, "Table1", JoinKind.LeftOuter),
#"Expanded Table1" = Table.ExpandTableColumn(Source, "Table1", {"Committed", "Remaining"}, {"Committed", "Remaining"}),
#"Reordered Columns" = Table.ReorderColumns(#"Expanded Table1",{"Financial #", "Committed", "Spent", "Remaining"})
in
#"Reordered Columns"
 

Attachments

  • PQ Merge.xlsx
    19 KB · Views: 1
Back
Top