Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
vweilandosmose
Contributor II
Contributor II

Replace a quote (') with a blank

How do I replace a quote (') in a text field with a space ( )? I want to lookup the city, but my lookup file contains 'O Fallon' for the city O'Fallon. I tried to use replace([City],''',' ') but that did not work. Is there an escape character?

3 Replies
sunny_talwar

May be this

Replace(City, Chr(39), ' ')

Thiago_Justen_

You can also use:

PurgeChar (City,Chr (39))

Cheers

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
vweilandosmose
Contributor II
Contributor II
Author

That worked. Thanks!