Forum Discussion

graphIt's avatar
graphIt
Frequent Visitor
5 years ago
Solved

Power query update column from another table.

Hi folks,   I have been struggling with this in Power Query.   I have 2 tables Table1 UNIT StartDate EndDate 1111 Dec 1, 2020 null 2222 Dec 1, 2020 null 3333 Dec 1, 202...
  • edhans's avatar
    5 years ago

    You do this with a merge. What you are doing is thinking like Excel with a vlookup. That can work ok with a few records, or a few thousand records maybe but above that, it will get super slow.

    1. Go to Table2
    2. Remove the EndDate column.
    3. Select Merge
    4. Merge with Table1 on the UNIT column
    5. Expand the StartDate
    6. Rename StartDate1 to "End Date" - I forgot to do that in this walkthrough.

    This will perform very well with larger datasets.