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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

how do I know if there is selection on a field or not

hello

I know that getselectedcount function returns 0 or >0 number depending whether the user selected values of the desired column in a list box

however when the user selects this value on a chart getselectedcount will be always >1

I need to know if there is selection on a field yes or no

please advise

I can walk on water when it freezes
3 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Use GetFieldselection(Field Name)

to test ...

CELAMBARASAN
Partner - Champion
Partner - Champion

You can implement whatever the way you want using GetSelectedCount(FieldName)

1.

=GetSelectedCount(FieldName)>0

gives you True(), if there is any selection otherwise False()

2.

=If(GetSelectedCount(FieldName)>0, 'Yes', 'No')

gives you 'Yes', if there is any selection otherwise 'No'

Are you expecting something else?

MarcoWedel

=If(GetSelectedCount(FieldName), 'Yes', 'No')


should work also


Hope this helps


Regards


Marco