Forum Discussion
Anonymous
3 years agoNot applicable
How to replace a string value if another string value exists in the cell ?
Hello, How to replace a string value if another string value is present in the cell? example : Data = aaa bbb ccc ddd eee fff I'm looking to replace only "eee" with "xxx-eee", only if "bb...
- 3 years ago
Anonymous Well, in DAX that is simply:
Column = IF(SEARcH("bbb", [Column1],,0)>1,SUBSTITUTE([Column1],"eee","xxx-eee"),[Column1])Let me see if I can figure out the Power Query.
Greg_Deckler
3 years agoCommunity Champion
Anonymous Well, in DAX that is simply:
Column = IF(SEARcH("bbb", [Column1],,0)>1,SUBSTITUTE([Column1],"eee","xxx-eee"),[Column1])
Let me see if I can figure out the Power Query.
- Anonymous3 years agoNot applicable
Thanks! I need it write with M please