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

Announcements
We are aware of an issue with the Product Downloads page and looking into it.
cancel
Showing results for 
Search instead for 
Did you mean: 
fabio182
Creator II
Creator II

Help

Hi gays !!!!

I can help on how to convert this string

ALESE, AUTOLAND

in

'ALESE','AUTOLAND'

in set analisys please

Atte. Fabio

Labels (1)
1 Solution

Accepted Solutions
JonnyPoole
Former Employee
Former Employee

chr(39)  - single quote   AND chr(44) - comma   ...are your friends while using double quotes in your SET MODIFIER.

So something like this

sum( {<RegionString={"$(=chr(39) & 'North America' & chr(39) & chr(44) & chr(39) & 'South America' & chr(39))"}>}  Sales)

will evaluate to:

Sum ( {<RegionString={"  'North America','South America' "}>} Sales)

and only show the result where RegionString is:    'North America','South America'

as below...

Capture.PNG.png

View solution in original post

7 Replies
JonnyPoole
Former Employee
Former Employee

chr(39)  - single quote   AND chr(44) - comma   ...are your friends while using double quotes in your SET MODIFIER.

So something like this

sum( {<RegionString={"$(=chr(39) & 'North America' & chr(39) & chr(44) & chr(39) & 'South America' & chr(39))"}>}  Sales)

will evaluate to:

Sum ( {<RegionString={"  'North America','South America' "}>} Sales)

and only show the result where RegionString is:    'North America','South America'

as below...

Capture.PNG.png

maxgro
MVP
MVP

1.png

fabio182
Creator II
Creator II
Author

Thanks man.

fabio182
Creator II
Creator II
Author

Thanks man !!!

MarcoWedel
MVP
MVP

=Chr(39)&Replace('ALESE, AUTOLAND',',',Chr(39)&','&Chr(39))&Chr(39)

fabio182
Creator II
Creator II
Author

Thank's man

MarcoWedel
MVP
MVP

You're welcome

regards

Marco