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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
tinkerz1
Creator II
Creator II

count if list box is has a selection

How can I write a statement to say if a field has a selection then proceed to count.

and then another statment thats say if the field has this item selected then count?

1 Solution

Accepted Solutions
sunny_talwar

You can use GetSelectedCount() function to check if something has been selected in field or not:

If(GetSelectedCount(FieldName) > 0, DoSomething, DoSomethingElse)

View solution in original post

3 Replies
Anonymous
Not applicable

1) if (getselectedcount(yourfield)>0, proceed)

2) if (field='desiredfield', getselectcount(field),else)

ecolomer
Master II
Master II

You can use function GetFieldSelections(field) or GetSelelctedCount(field)

sunny_talwar

You can use GetSelectedCount() function to check if something has been selected in field or not:

If(GetSelectedCount(FieldName) > 0, DoSomething, DoSomethingElse)