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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
tinkerz1
Creator II
Creator II

count records not selected in a list box

Hi,

If I have a list box with selections I can use count ([ABC]) in a straight table to to count those selected records.

But how can make a straight table with an expression counting all the not selected fields?

Thanks.

6 Replies
marcus_sommer

Getexcludedcount([ABC]) should work.

- Marcus

sinanozdemir
Specialist III
Specialist III

Hi Neil,

I use Count({1 - $} Distinct Dimension) function:

Capture.PNG

tinkerz1
Creator II
Creator II
Author

This does not work for me

I copy the object and change the formula to Getexcludedcount([ABC]), the expression say 'OK' but nothing

I though I have to use getfieldselections or something?

tinkerz1
Creator II
Creator II
Author

Also this works

 

=

count({$<[Forum Reference (June)]=e([Forum Reference (June)])>}[Forum Reference (June)])

tinkerz1
Creator II
Creator II
Author

This does not work for me, I think it is down to using an alternate state in the list box and the straight table, they are the same alternate states, how do I point the count statement at the alternate state?

marcus_sommer

Is this solved yet? It's not clear if you answered always to yourself. If it's not then please provide more context how do you want to use it and why.

- Marcus