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: 
Not applicable

Replace ' character in fileds

Hello,

Sorry for my poor english but i'm french.

I'd like to know how replace a quote character <'> in a field.

I tried to use the function <replace> using <"'"> in option :

replace(<field>, "'",'') but it doesn't work !

Can someone help me please !

1 Solution

Accepted Solutions
Not applicable
Author

Hi Romain,

Check the attached application.

In my application, i have replaced <,> in to space < >.

Check the attachment , you`ll get a idea.

Cheers Beer

- Sridhar

View solution in original post

14 Replies
Not applicable
Author

Hi Romain,

Check the attached application.

In my application, i have replaced <,> in to space < >.

Check the attachment , you`ll get a idea.

Cheers Beer

- Sridhar

Not applicable
Author

thank you Merci Merci beaucoup 🙂

it's works perfectly !

thank you very much !

Not applicable
Author

Ha...! all credits goes to MR. Rob Wunderlich , because i have read this one in his bolg. Wink

cheers Beer

- Sridhar

rbecher
MVP
MVP

Okay, MapSubstring( ) is one way, it's also easy (and more flexible) with the replace function:

replace(<field>, chr(39), ' ')

Ralf

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
rbecher
MVP
MVP

..this app was with comma not w/ qoute.

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
Not applicable
Author

Hi,

It will work but you need to take all info to excel as i did.

check the attachment Yes

- Sridhar

rbecher
MVP
MVP

..with double quotes use chr(34), just as simple as this:

Load *,
replace(Product, chr(34), ' ') as Product_Replace;
LOAD Product
FROM (biff, embedded labels, table is Sheet1$);

Ralf

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
qlikviewforum
Creator II
Creator II

How can I use replace(or any other string function) to put double quotes in the start and end of the path? Because New Folder contains space in between.

"C:\Documents and Settings\MYUSER\Desktop\New Folder"

rbecher
MVP
MVP

Just add the double qoutes:

'"' & path & '"'  // single double single quote & ..

- Ralf

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine