Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
| 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!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |