Forum Discussion
Anonymous
4 years agoNot applicable
How to replace substring in If condition in Power query
id description 1 123acx 1 123acx 2 456qwe Hi, i want to replace 123 to 789(or first 3 value to another 3 value), if the id column == 1, and "acx" remains. how should i code i...
- 4 years ago
Anonymous
if [id]=1 and Text.Contains([description],"acx") then Text.Replace([description],"123","789") else [description]
smpa01
4 years agoCommunity Champion
Anonymous
if [id]=1 and Text.Contains([description],"acx") then Text.Replace([description],"123","789") else [description]Anonymous
4 years agoNot applicable
Great! thanks for your solution. it works!