Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How can i now if a field is selected?

I always used per example IF(COUNT(DISTINCT FIELD)=1, TRUE),

but i need create a condition if an user SELECTED a field, no just if a field have just one value....is diferent...

tks a lot!!!!

1 Solution

Accepted Solutions
Not applicable
Author

Not sure exactly what you're trying to do...

If(GetSelectedCount(FIELD)>=1,...

View solution in original post

3 Replies
Not applicable
Author

Not sure exactly what you're trying to do...

If(GetSelectedCount(FIELD)>=1,...

Not applicable
Author

Exacly that...

tks a lot!!!!

fabian3684386
Contributor III
Contributor III

I am having a case where neither this expression nor GetFieldSelections does not evaluate lazily within an extension parameter if all selections are cleared, which causes long load times. Is there an alternative better way?

Current expression looks like 

=If(NOT GetFieldSelections(x) = '' and GetSelectedCount(x) = 1,
concat(
aggr(
only(...)
,
...
),
'$'
),
'$' // else selection should be made prior to expensive aggr
)