Forum Discussion

garich's avatar
garich
Frequent Visitor
2 years ago
Solved

Display only the first record after merging 2 tables

Hi,   I would like to merge 2 tables below linking Customer ID and Person ID where I only need to display the first top record of Table B.   Table: A ID CustomerID 1 123 2 456 3 ...
  • slorin's avatar
    2 years ago

    Hi,

    Step1 = Table.NestedJoin(
    #"Expanded PRS DateExtensions", {"Customer ID"},
    #"PRS HistoricPersonRecords", {"PersonID"},
    "PRS HistoricPersonRecords", JoinKind.LeftOuter),
    Step2 = Table.AddColumn(Step1, "PRSName", each [#"PRS HistoricPersonRecords"]{0}[PRSName])

     Stéphane