Forum Discussion
Anonymous
4 years agoNot applicable
Replacing values within column with if statement and text.startswith
Hi Newbie here so please be gentle! I'm using power query (M language). I am trying to modify a simple replace text command so that it is conditional using text.startswith. Ultimately I wa...
- 4 years ago
Use this (Replace Column1 and #"Added Custom" appropriately.
Table.ReplaceValue(#"Added Custom",each [Column1],each if Text.Start([Column1],1)="X" then Text.ReplaceRange([Column1],0,1,"") else [Column1], Replacer.ReplaceValue,{"Column1"})
Anonymous
4 years agoNot applicable
Hi can this be used for Direct Query or only applicable for Import?
- Vijay_A_Verma4 years agoMost Valuable Professional
It is applicable for both.