Skip to main content
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

1 Solution

Accepted Solutions
JonnyPoole
Employee
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
Employee
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

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

fabio182
Creator II
Creator II
Author

Thank's man

MarcoWedel

You're welcome

regards

Marco