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

Set analysis - formula help for multiple selections

Hi All,

I have a table that isn't linked to use for comparative selections in QV10.

Here is the formula that works in a text box:

=chr(39)&concat(  box_select_A,  chr(39) &  ',' & chr(39))&chr(39)

This results in a text box showing the single or multiple selections I have like so:

'A', 'B', 'C', 'D'

I try to put this into set analysis to allow for multiple selections:

sum(   {< box={ "$(=chr(39)&concat(   box_select_A,  chr(39) &  ',' & chr(39))&chr(39) )"  }>}    metricA)

I have also tried the following, changing the way the box_select_A is included:

sum(   {< box={ "$(=chr(39)&concat(   $(box_select_A),  chr(39) &  ',' & chr(39))&chr(39) )"  }>}    metricA)

sum(   {< box={ "$(=chr(39)&concat(   '$(box_select_A)',  chr(39) &  ',' & chr(39))&chr(39) )"  }>}    metricA)

sum(   {< box={ "$(=chr(39)&concat(   $(=box_select_A),  chr(39) &  ',' & chr(39))&chr(39) )"  }>}    metricA)

sum(   {< box={ "$(=chr(39)&concat(   '$(=box_select_A)',  chr(39) &  ',' & chr(39))&chr(39) )"  }>}    metricA)

But no luck.  Has anyone achieved this?  I'm just trying to build a list in the set for box that looks like:

'A','B','C'  etc...

Thanks

Gareth

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Please find attached file for solution.  Hope it helps you.

Regards,

Jagan.

View solution in original post

2 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Please find attached file for solution.  Hope it helps you.

Regards,

Jagan.

Not applicable
Author

Great!  I hadn't thought of using a variable.  Thanks for that!