Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Check if a selection is defined

Hello.

How can I check if a selection of any type is defined in my document? I need it to show or not a graph line.
I've tried working with GetCurrentSelections() but I can't handle the '-' result. It doesn't seems to be a null(), neither a '-' of course.

Thank you!

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hello Luca,

If your document has no selections at all,

Len(GetCurrentSelections()) = 0
otherwise, length of current selections will vary, and will be always greater than 0. Hope that helps!

View solution in original post

2 Replies
Miguel_Angel_Baeyens

Hello Luca,

If your document has no selections at all,

Len(GetCurrentSelections()) = 0
otherwise, length of current selections will vary, and will be always greater than 0. Hope that helps!

Not applicable
Author

Thank you Miguel!

Solution was just a step ahead, as usual... I was looking for a length() function and of course thre's one: len()! Cheers!