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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Selecting multiple values from a concatenated field using list box

Hi ,

How do you select/filter using listbox from a concatenated field ? For example from the table below I want to see how many meetings have Employee A and B attended ?

EmployeeMeeting TypeMeeting Hours(Minutes)
A,B,CSales Pitch - XYZ Client60
A,B,HSales Pitch - XXX Client60
X,B,ZSales Pitch - YYY Client30
H,I,JSales Pitch - ZZZ Client30
D,E,FSales Pitch - AAA Client60
A,B,DSales Pitch - BBB Client30
M,N,OSales Pitch - CCC Client30
1 Solution

Accepted Solutions
sunny_talwar

May be create a Link Table with a field which contain the distinct values of Employee in a column and you make selection in there.

Example Script:

Table:

LOAD * Inline [

Employee| Meeting Type| Meeting Hours(Minutes)

A,B,C| Sales Pitch - XYZ Client| 60

A,B,H| Sales Pitch - XXX Client| 60

X,B,Z| Sales Pitch - YYY Client| 30

H,I,J| Sales Pitch - ZZZ Client| 30

D,E,F| Sales Pitch - AAA Client| 60

A,B,D| Sales Pitch - BBB Client| 30

M,N,O| Sales Pitch - CCC Client| 30

] (delimiter is '|');

LinkTable:

LOAD Employee,

  SubField(Employee, ',') as EmpSelection

Resident Table;

Capture.PNG

View solution in original post

4 Replies
sunny_talwar

May be create a Link Table with a field which contain the distinct values of Employee in a column and you make selection in there.

Example Script:

Table:

LOAD * Inline [

Employee| Meeting Type| Meeting Hours(Minutes)

A,B,C| Sales Pitch - XYZ Client| 60

A,B,H| Sales Pitch - XXX Client| 60

X,B,Z| Sales Pitch - YYY Client| 30

H,I,J| Sales Pitch - ZZZ Client| 30

D,E,F| Sales Pitch - AAA Client| 60

A,B,D| Sales Pitch - BBB Client| 30

M,N,O| Sales Pitch - CCC Client| 30

] (delimiter is '|');

LinkTable:

LOAD Employee,

  SubField(Employee, ',') as EmpSelection

Resident Table;

Capture.PNG

jonathandienst
Partner - Champion III
Partner - Champion III

Do you mean to select from the front end?

Click the Employee list box and type

( *A*|*B*)

in the search box.

But you might be better off is you "de-concatenate" the field using SubField during the load.

EDIT: which Sunny has now added to his post

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable
Author

Thanks for your help Sunny. I created a link table as you suggested.

Anonymous
Not applicable
Author

Thanks for your help Jonathan.