Forum Discussion
Text.Remove with several characters
- 3 years ago
You could try Text.Replace and use "" as the new text.
- 3 years ago
Hi P-Lag
You can nest multiple Text.Replace functions in one custom step. Text.Replace - PowerQuery M | Microsoft Learn
= Table.TransformColumns(#"previous step name", {{"Equipment ID", each Text.Replace(Text.Replace(_, "-1", ""), "S", "")}})
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it. - 3 years ago
try this
Text.Combine(Splitter.SplitTextByAnyDelimiters({"-1","S"})([EmployeeID]))
Use this (No need to check for Text.Contains)
= Text.Remove([Equipment ID],Text.ToList("-1"))Hi
Vijay_A_Verma
Thanks for the tip to remove text.contains. Unfortunately this formula did not work, it removed all 1 and -1, so it removed more values than wanted.
- wdx223_Daniel3 years agoCommunity Champion
try this
Text.Combine(Splitter.SplitTextByAnyDelimiters({"-1","S"})([EmployeeID]))