Forum Discussion

BrandonH's avatar
BrandonH
Frequent Visitor
3 years ago
Solved

Double Quotation (") - Identification and Removal

Hello All,    I am working with some regulatory language as I talked about in my last post. Link Having pulled in some new data there is a special character " (double quotes, my assumption) that a...
  • BrandonH's avatar
    BrandonH
    3 years ago

    Hi Pat, 

     

    I ended up using a few different steps to try to clean the double quotation marks. One thing that I ended up doing was using the text replace function, pointing it to my column and replacing a set of double quotes written as "" with nothing (using the quote structure of M code)  "" so the actual step in my query looks like this: 

     

    = Table.ReplaceValue(#"Replaced Value","""","",Replacer.ReplaceText,{"MyColumn"})

     

    I guess our takeaway here is to replace a double quote character we need to specify a set of double quotes within the M code so power query understands what we are replacing, like escaping a character in other languages/expressions.