Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |