Forum Discussion
RAHULBANDI
3 years agoHelper II
remove Text "C"
Hi I have data-set with around 50k Records, ex-data C555354 C555355 555356 C555357 C555358 555359 C555360 C555361 555363 C555362 C555364 C555365 C555366 ...
- 3 years ago
Hi,
Add a Custom Column with this formula:
if Text.Start(Text.From([Column1]), 1) = "C" then Replacer.ReplaceText([Column1], "C", "") else [Column1]Regards
- 3 years ago
There are many ways to accomplish this. One way is
= Text.Replace(Text.From([Data]),"C","")
This will look like this in Advanced Editor where you can make it type number
= Table.AddColumn(Source, "Custom", each Text.Replace(Text.From([Data]),"C",""), type number)
You can also use Table.ReplaceValue
Table.ReplaceValue(Source,each [Data],each Text.Replace(Text.From([Data]),"C",""),Replacer.ReplaceValue,{"Data"})
Jos_Woolley
3 years agoSolution Sage
Hi,
Add a Custom Column with this formula:
if Text.Start(Text.From([Column1]), 1) = "C" then
Replacer.ReplaceText([Column1], "C", "")
else
[Column1]Regards