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: 
shekhar_analyti
Specialist
Specialist

How to filter values in List box based on the value in variable ?

Hi All ,

How to filter values in List box based on the value in variable ?

In the attached app based on the season i want the match ids to be filtered in List box .
Example - if user selects season 1 then in list box , only the match id of season 1 should be shown .

Thanks & Regards

Shekar

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

Hi,

try this in List Box

=Aggr(Only({<match_id=P({<season={'$(vSelect_Season)'}>})>} match_id),match_id)

Regards,

Antonio

View solution in original post

12 Replies
senpradip007
Specialist III
Specialist III

There is no app is attached. Please attached the same.

shekhar_analyti
Specialist
Specialist
Author

Sorry For missing that ..

Please find attached

senpradip007
Specialist III
Specialist III

Have a look at this.

antoniotiman
Master III
Master III

Hi,

try this in List Box

=Aggr(Only({<match_id=P({<season={'$(vSelect_Season)'}>})>} match_id),match_id)

Regards,

Antonio

shekhar_analyti
Specialist
Specialist
Author

Thanks Antonio , this is exactly what was required

kusumanchir
Creator
Creator

Hi Shekhar,

Please find the attached app.

I just edited the expression in the list box with '=match_id'. And also checked the 'Hide Excluded' option.

shekhar_analyti
Specialist
Specialist
Author

But on selecting any value in the list box having expression

(Aggr(Only({<match_id=P({<season={'$(vSelect_Season)'}>})>} match_id),match_id)) , makes other values to disappear .


Cant we keep other values intact , even on selection ?

antoniotiman
Master III
Master III

i'm afraid not, This is behavior of Aggr() function.

shekhar_analyti
Specialist
Specialist
Author

stalwar1‌ ... any workaround ?