Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
stjernvd
Partner - Creator
Partner - Creator

Show expression only if nothing is selected

Hi,

I want to hide my expression in my chart only if nothing is selected in any filters.

So in the conditional show box for expression I tried to put this:

=if(GetCurrentSelections() <> 0)

but it doesn't work.

Any ideas?

1 Solution

Accepted Solutions
sunny_talwar

Try this instead:

If you want to display when something is selected, try this:

Len(Trim(GetCurrentSelections)) > 0

For the expression to display when nothing is selected, try this:

Len(Trim(GetCurrentSelections)) = 0

View solution in original post

1 Reply
sunny_talwar

Try this instead:

If you want to display when something is selected, try this:

Len(Trim(GetCurrentSelections)) > 0

For the expression to display when nothing is selected, try this:

Len(Trim(GetCurrentSelections)) = 0