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

Get 5 selected values in 5 variables

Hi All,

I have a id column. i want to store each selected id in a variable, how can i achieve that?

Regards,

Gaurav

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

var1: =subfield(GetFieldSelections(MyField,';'),';',1)
var2: =subfield(GetFieldSelections(MyField,';'),';',2)

...

var5: =subfield(GetFieldSelections(MyField,';'),';',5)


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

var1: =subfield(GetFieldSelections(MyField,';'),';',1)
var2: =subfield(GetFieldSelections(MyField,';'),';',2)

...

var5: =subfield(GetFieldSelections(MyField,';'),';',5)


talk is cheap, supply exceeds demand
Not applicable
Author

Hi Gaurav,

Please give me one example how you want it.

Regards,

Santhosh G

Not applicable
Author

Actually,

On selection of id's present in the list box i want individual id's to be in column of table and want information in rows so that i can easily compare different id's.

eg.                  id1    |  id2   |   id3

           Name Gaurav|  Ajay |   Vijay

           City    Delhi   | Pune |   Mumbai

I want this kind of table once i select id's from list box

Regards,

Gaurav