Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
BrandonH
Frequent Visitor

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 are not being replaced/cleaned elsewhere in my query.

 

What Power Query is displaying"Why is this happening."
What Microsoft Word is displaying"Why is this happening."
What Notepad is displaying"""Why is this happening."""

 

Using a text replacement for the " character doesnt work, using a text replacement for """ doesnt work. Using webbased character identifiers they finds that the characters are double quotes (U+0022). Using a text replacement for #(0022) doesnt work.

 

Am I missing something glaring here? I'd just edit the source data but it is regularly refreshed (overwritten). Any fixes to the source would be temporary. 

 

1 ACCEPTED SOLUTION
BrandonH
Frequent Visitor

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. 

View solution in original post

2 REPLIES 2
ppm1
Solution Sage
Solution Sage

One thing to try would be to find a cell that has the character and click on it in the query editor. You then see the value in the preview window below where you can select that character, copy it, and paste it into the Replace values pop up.

 

Pat

Microsoft Employee
BrandonH
Frequent Visitor

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. 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.