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

Search in 2 columns Based on 1 ListBox selection

I have the following records

Rolling 12 MonthRolling 6 MonthTopic
11Topic 1
11Topic 2
10Topic 3
10Topic 4
00Topic 5

Also I have a Inline data table:

Load * INLINE [

     DateRange

     Rolling 6 Month

     Rolling 12 Month

];

Now I Create ListBox for DateRange and I'd like to make the Topic selection based on this ListBox selection

3 Replies
maxgro
MVP
MVP

I suppose that you can use field events trigger, see attachment

In the menu go to Settings --> Document Properties --> Triggers and on Field Event Triggers choose the field (the one of the listbox) DateRange, then OnSelect --> Add Action(s)

in Windoww Actions add 2 Actions

Select in Field          [Rolling 6 Month]          =if(GetFieldSelections(DateRange)='Rolling 6 Month', 1)

Select in Field          [Rolling 12 Month]          =if(GetFieldSelections(DateRange)='Rolling 12 Month', 1)

104966.jpg

Not applicable
Author

Thanks. But It's not working in case when dataset can't find any record. It just doesn't do anything

maxgro
MVP
MVP

just another attempt with a different approach