Forum Discussion
Anonymous
2 years agoNot applicable
Power query data cleansing
Hi All, I have a text data of user comments that comes with speacial characters like (like Â, ’) , If I use replace function, it will delete preceding or previous occurrences of the letter A o...
- Anonymous2 years ago
Chris Webb shows us this:
(inputText as text) as text =>
let
ReplaceDiacritics = Text.FromBinary(Text.ToBinary(inputText, 28597), TextEncoding.Ascii), RemoveQuestionMarks = Text.Replace(ReplaceDiacritics, "?", " "), RemoveExcessSpaces = Text.Combine( List.RemoveItems(Text.Split(Text.Trim(RemoveQuestionMarks), " "), {""}), " " )
in
RemoveExcessSpaces
--Nate
Anonymous
2 years agoNot applicable
Thank you!!