Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
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