sandy666
07-11-2023, 02:10 PM
Table1Table2Result
NAMESAP NAMENAMESAP NAME
Andrew SmithAsmithBob DylanBdylan
Bob DylanBdylan
Chris PineCpine
Dave SpensorDspensor
// Join
let
Table1 = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
Table2 = Excel.CurrentWorkbook(){[Name="Table2"]}[Content],
InnerJoin = Table.NestedJoin(Table1, {"NAME"}, Table2, {"NAME"}, "Table2", JoinKind.Inner),
TSC = Table.SelectColumns(InnerJoin,{"SAP NAME"})
in
TSC
NAMESAP NAMENAMESAP NAME
Andrew SmithAsmithBob DylanBdylan
Bob DylanBdylan
Chris PineCpine
Dave SpensorDspensor
// Join
let
Table1 = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
Table2 = Excel.CurrentWorkbook(){[Name="Table2"]}[Content],
InnerJoin = Table.NestedJoin(Table1, {"NAME"}, Table2, {"NAME"}, "Table2", JoinKind.Inner),
TSC = Table.SelectColumns(InnerJoin,{"SAP NAME"})
in
TSC