Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
| 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!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |