Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

List box expression set analysis?

My data model has a table in it.  My user is only interested in a certain subset of that table's data (WHERE FieldA = 'XYZ').  Originally, I handled this in the script by adding another table by doing a resident load of the table with FieldA = 'XYZ' in the WHERE clause.  This works, but I it would be better to not have an extra table in the data model, and instead use set analysis.

This works great for charts, but I'm having issues with list boxes.  I want the list box to only contain values where FieldA = 'XYZ'.  I can build an expression for the list box, and do something like =Only({<FieldA = {'XYZ'}>} ListBoxField), but Only isn't the right command.  I also don't think you can show frequencies for expressions.. but I'd be happy even just to get the possible selections.

How am I supposed to do this?

Thanks

10 Replies
pratap6699
Creator
Creator

=if([Country Name] ='canada', or [Country Name]='USA' or [Country Name]='South America', [Country Name])