Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I would like to transform the data in one column as follows but cannot find a way to do it. I want to find the cells that start with abc and replace the content of the cell with abc, otherwise leave it as it is.
if (contains ([column2], "abc"), then "abc", else return existing string
Thanks in advance
Solved! Go to Solution.
Hi @STs2207,
You can use this formula in Query Editor for power Query or use the LEFT function in DAX :
if Text.Contains([Column2], "abc") then "abc" else [Column2])
Hope it helps...
Ninter
Hi @STs2207,
You can use this formula in Query Editor for power Query or use the LEFT function in DAX :
if Text.Contains([Column2], "abc") then "abc" else [Column2])
Hope it helps...
Ninter
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 71 | |
| 50 | |
| 46 | |
| 44 |