Forum Discussion
How do you replace values in a column based on values in another column on Power Query Editor?
Hello,
My situation is as follows:
I'm trying to replace values in a column based on values in another column, without changing every value in the data set.
Example:
Business Code Customer Code
ABC DEF
ABC DEF
ABC GHI
ABC JKL
I want to make so that any customer code with "DEF" is replacing "ABC" in Business Code, with "DEF" in Business Code, while not affecting the rest of "ABC"s in Business Code.
Can anyone please help.
Thanks.
You can try this in Power Query
You can create new conditional column using following Settings
Rename Old Business Code column - as old column
and rename Newly Created column as Business Code
Regards,
Sayali
If this post helps, then please consider Accept it as the solution to help others find it more quickly.
1 Reply
- sayaliredijSolution Sage
You can try this in Power Query
You can create new conditional column using following Settings
Rename Old Business Code column - as old column
and rename Newly Created column as Business Code
Regards,
Sayali
If this post helps, then please consider Accept it as the solution to help others find it more quickly.