Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

replacing values based on another column using M

Hi all, I'm trying to replace some incorrect values in column A based on the values in column B. Essentially, I would like to change all of the values in Column A to "127" IF Column B = "table" without adding a new column.

 

I've tried to use the Replacer.ReplaceText and Table.ReplaceValue functions but can't seem to get it right. Appreciate the help

 

Current table

Column AColumn B
124table
124table
125table

 

Desired table

Column AColumn B
127table
127table
127table

3 Replies