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: 
Anonymous
Not applicable

GetSelectedCount

Hi,

I need to set a condition:

if any value has been selected in Field Brands (alternate state AS), then 1, else 0.

I can't use the function GetSelectedCount because we're still using an old QlikView version where GetSelectedCount doesn't take {AS} as an argument.

Could you please advise something?

Thank you in advance,

Larisa

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Would something like this avoiding the use of GetSelectedCount() help ?

    if ( count( {1} distinct Brand ) > count( {AS} distinct Brand ) , 1 , 0 )

See attached sample qvw.

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Would something like this avoiding the use of GetSelectedCount() help ?

    if ( count( {1} distinct Brand ) > count( {AS} distinct Brand ) , 1 , 0 )

See attached sample qvw.

Anonymous
Not applicable
Author

Thank you!