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

How to count where field values find in other field values?

Hi,

example:

count( {$<Products = {Handy, PC, Notebook}>} Products )


"Handy, PC, Notebook" are in the field "TopProducts". I want only count Products wich find in TopProducts. In the expression i must write each TopProduct. Is it possible only to write the fieldname TopProducts instead of each value from this field?


count( {$<Products = TopProducts>} Products )


But if no TopProducts value selected it doesn´t work.


How can i do it?


regards,

sam

1 Solution

Accepted Solutions
sunny_talwar

May be this:

Count({$<Products = p(TopProducts)>} Products )

View solution in original post

4 Replies
sunny_talwar

May be this:

Count({$<Products = p(TopProducts)>} Products )

Anonymous
Not applicable
Author

Perfect, thanks!

Anonymous
Not applicable
Author

How can i combine fields?

Count({$<Products = p(TopProducts)>} Products )

The field TopProducts are in a table where another field is like TopProductsLand. How can i combine this both fields in this expression. For example

Count({$<Products = p(TopProducts where TopProductsLand = "US")>} Products )

regards,

Sam

sunny_talwar

May be like this:

Count({$<Products = p({<TopProductsLand = {'US'}>}TopProducts)>} Products)