Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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 or blank out the comment. I tried both the replace formaula and Replace value context menu " replace using specail characters".
Thank you for your help
Solved! Go to Solution.
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
Thank you!!
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