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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Simple quote in a field

Hi

I have a field which have a quote as :

-  String's

-  J'aime 

How can I handle this in expression like  sum(   If ( FIELD = ' my string value' ,   NumField))  

Any idea

JJ

1 Solution

Accepted Solutions
adamwilson
Partner - Creator
Partner - Creator

try this:

sum(   If ( FIELD = 'J' & chr(39) & 'aime' ,   NumField)) 

instead of   " J'aime "

The Chr(39) substitutes the ' character.

View solution in original post

5 Replies
shree909
Partner - Specialist II
Partner - Specialist II

i am not sure

try this

sum(   If ( FIELD = '[ my string value]' ,   NumField)) 

Not applicable
Author

Thanks but it doesnt' work !

adamwilson
Partner - Creator
Partner - Creator

try this:

sum(   If ( FIELD = 'J' & chr(39) & 'aime' ,   NumField)) 

instead of   " J'aime "

The Chr(39) substitutes the ' character.

nagaiank
Specialist III
Specialist III

Try

sum(   If ( FIELD = 'String' & Chr(39) &'s' ,   NumField))

Not applicable
Author

Thanks guys it works like a charm !

JJ