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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
cristianj
Helper IV
Helper IV

how to replace double qoutes ( " ) with space

Hello

i am trying to replace from a column double quotes " 

first i try to use something like : substitute(mycolumn,"""," ")not worked, also i try to use "/"", try using a variable , tempvar=unichar(22), but nothing seems to work, 

Do you have any ideea? Thx

1 ACCEPTED SOLUTION
Uzi2019
Super User
Super User

Hi @cristianj 

you can either do it with power query
like below

Uzi2019_0-1711710508236.png

Go to power query> select your column> select transform tab> select replace value> 

Uzi2019_1-1711710566342.png

 

Put " in value to find and add single space replace with 

Uzi2019_2-1711710615590.png

see above value is replaced with space.

 

you can try with dax also
create calculated column and write below dax

Replace dax = SUBSTITUTE(String[Column],""""," ")
 

Uzi2019_3-1711710666854.png

 

 

I hope I answered your question!

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

View solution in original post

4 REPLIES 4
Uzi2019
Super User
Super User

Hi @cristianj 

you can either do it with power query
like below

Uzi2019_0-1711710508236.png

Go to power query> select your column> select transform tab> select replace value> 

Uzi2019_1-1711710566342.png

 

Put " in value to find and add single space replace with 

Uzi2019_2-1711710615590.png

see above value is replaced with space.

 

you can try with dax also
create calculated column and write below dax

Replace dax = SUBSTITUTE(String[Column],""""," ")
 

Uzi2019_3-1711710666854.png

 

 

I hope I answered your question!

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
cristianj
Helper IV
Helper IV

it's not working  😞

 

cristianj_0-1711705592150.png

 

can you share the snip of the column vaue that has  ''

AnalyticPulse
Continued Contributor
Continued Contributor

can you try below dax:
ReplacedColumn = SUBSTITUTE('mycolumn', "\"", "")

 

 

and can you show snip of the double quotes in data

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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