Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Replace value from another table if the columns appear

Hi there!   I have 1st table here with some incorrect data and would like to replace it based on the 2nd table. The value in red font is wrong, the correct data is in 2nd table.   I would ...
  • wdx223_Daniel's avatar
    3 years ago

    suppose the bound value of year and  ID in table 2 is unique, you can try this code.

    NewStep in Table1=Table.FromRecords(Table.TransformRows(Table1,each _&(Table2{[Year=[Year],ID=[ID]]}? ??[])))