Forum Discussion

Keith011's avatar
Keith011
Helper III
3 years ago
Solved

Easy match and return help

Hi there.   I have a simple task but just can't figure it out.   This is table1 countryCode countryName HK Hong Kong MY Malaysia SG Singapore CN China   This is table2 ...
  • wdx223_Daniel's avatar
    3 years ago

    if the rows of table 1 is unique, then try this code:

    NewStep=Table.AddColumn(Table2,"Final_Country",each Table1{[CountryCode=[#"Counrty/Region Name"]]}?[CountryName]? ??[#"Counrty/Region Name"])