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
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!