Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 in power query? Very appreciate your help!
Solved! Go to Solution.
@Anonymous
if [id]=1 and Text.Contains([description],"acx") then Text.Replace([description],"123","789") else [description]
@Anonymous
if [id]=1 and Text.Contains([description],"acx") then Text.Replace([description],"123","789") else [description]
Great! thanks for your solution. it works!