Forum Discussion
mcflurry
5 years agoHelper I
Insert multiple characters to string
Hi, I'm trying to insert a few "dots" symbol to a column with a custom column, but i can only get one characte, this worksr: CustomColumn =Text.Insert(Text.From([Column]),2,".") What if ...
- Anonymous5 years ago
Hi mcflurry
Add a custom column like :
Column=Text.Insert(Text.Insert([Column1],4,"."),7,".")
And the effect is as shown:
Best Regards
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
HashamNiaz
5 years agoSolution Sage
Hi !
You should use the following Power Query (M) code to do your transformation for Custom column;
Text.Insert(Text.Insert(Text.Insert([Column1],2,"."),5,"."),8,".")
Replace Character
First replacement will be done on 2nd position, now your string has one more character in it, so to replace 4th character in orginal string you need to replace 5th position and similary for 6th caharacter in orignal string you need to replace 8th position
Regards,
Hasham