Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi!
Help me please with removing nonessential characters from text column.
I use Replace Values function to remove this characters:
= Table.ReplaceValue(#"Removed Columns1",",","",Replacer.ReplaceText,{"message"})
How to modify this formula to replace several characters in one step. Or is it ony other way to remove special symbols.
Regards!
Solved! Go to Solution.
@Greg_Deckler: Text.Trim only removes characters at the start or at the end of a text.
My suggestion would be to convert the text to a list of characters, remove the unwanted characters and return the result back to a text.
= Text.Combine(List.RemoveItems(Text.ToList("M,,,a.r;;;celB.;e.u.;g"),Text.ToList(",.;")))
Thank you guys for your help!
Regards!
You can also use the User Interface to
Trim - Remove leading and trailing whitespaces from each cell in the selected columns!
Clean - Remove non-printable characters in the selected columns!
"Clean" worked for me - thanks 🙂
@Sean I'm afraid you are mixing up "non-essential" with "non-printable".
This solution will not return "MarcelBeug" from my example.
I never said Clean would be a solution!
Before @arthastic accepted your answer as a solution he gave smpoure the heads up as if Trim would be enough!
So I started preparing my answer before yours was marked as the solution!
Just wanted to show the Trim can be accessed through the User Interface
And because Clean is right underneath Trim I decided to include it - thats it - nothing else!
EDIT: The Audio is amazing!
Use Text.Trim and specify the optional trimChars parameter:
https://msdn.microsoft.com/en-us/library/mt260494.aspx
@Greg_Deckler: Text.Trim only removes characters at the start or at the end of a text.
My suggestion would be to convert the text to a list of characters, remove the unwanted characters and return the result back to a text.
= Text.Combine(List.RemoveItems(Text.ToList("M,,,a.r;;;celB.;e.u.;g"),Text.ToList(",.;")))
User | Count |
---|---|
117 | |
73 | |
58 | |
49 | |
48 |
User | Count |
---|---|
171 | |
122 | |
60 | |
59 | |
56 |