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

Toggle a filter when any selection is made

Hi all,

I am hoping this is a simple trigger that I am missing. Basically my sheet right now has about 15 options the user can select from, with many choices per selection. There are 4 multi boxes with 3-4 dimensions in each box with many choices per dimension.

I have a Current Selections Box in the upper right to show the users their current filters.

When a user opens the program, I would like a text box to say something like "No Filters Selected." Then if the user selects anything, the box should say "Number of Records with current filters: x" I already wrote the expression count based on number of rows to change x to a real number.

So is there a way to do this? My thought is to change what a variable says when something is selected?

Thanks so much.

1 Solution

Accepted Solutions
MayilVahanan

HI

Try like this in text box:

=if(Len(GetCurrentSelections())=0,'No Filters Selected','Number of selections selected '&your expression)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

4 Replies
MayilVahanan

HI

Try like this in text box:

=if(Len(GetCurrentSelections())=0,'No Filters Selected','Number of selections selected '&your expression)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Thanks, that worked perfectly!

Not applicable
Author

Hi, can you please provide your expression to get the no if rows chnaged with current selections?

Not applicable
Author

Here's my expression in full:

=if(len(GetCurrentSelections())=0,'No Filters Selected: '&num(count([Account #]),'##,###')&' total records',

'Number of Records with current filters: '&num(count(Account #]),'##,###'))