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

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

List box to check fields

Hi All!

I need to create a list box that refers to particular fields. By making selection over there report(s) should be filtered to have only those records where particular values exist in corresponding fields.

For example,

Source data comes with separate fields for each kind of treatment A, B, C. Each treatment have many different values. Null and '0' means invalid or unknown. A user is interested to know if particular treatment was given and doesn't care what exactly was it.

Treatment
A
B
C
Fact
F1ABC
ID4 40
ID1001
ID30560
ID2136
ID5212

So, when he chose a treatment 'A' from a list box 'Treatment' we should show (count, apply other logic) records from 'Fact' table where there are not Null and not '0' values in the field 'A'. That will be records with ID2 and ID5.  If a user chooses all three values from a list box, all records will be displayed (considered) as they all have either one or another treatment.

How it might be achieved?

I tried creating a concatenated string to refer to a particular treatment if it was performed. But now I don't know how to make a trigger (use variables) to search if any element in GetFieldSelections('Treatment', ',') exists in that field?

My new string could be [A, , ,], [, , B, C], [ , , ,]  and so on.

I greatly appreciate any help!

Thank you!

1 Solution

Accepted Solutions
iktrayanov
Creator III
Creator III

Try using crosstable.

View solution in original post

3 Replies
iktrayanov
Creator III
Creator III

Try using crosstable.

MK_QSL
MVP
MVP

Like this?

Not applicable
Author

Ivan, Manish,

Thank you! Crosstable is a solution here. And simple