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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis - Basic question about intersection operator (*)

I've read up on a few threads about this but haven't found the specific answer that I'm looking for. Basically, I'm trying this expression for a straight table:

= count({<[Gifts Type Code] = {c}> * <[Gifts Honor Marker] = {B}>} [Gifts ID])

and it yields 0. However if I use this

= count({<[Gifts Type Code] = {c}, [Gifts Honor Marker] = {B}>} [Gifts ID])

It works. My question is why? It seems like the two statements should yield identical results

Obviously for this specific case I can use the second statement, but I use the intersection operator (*) in several other places so I want to make sure I know what it actually does.

Thanks

Labels (1)
1 Solution

Accepted Solutions
pover
Partner - Master
Partner - Master

The syntax looks fine, but I've found a difference in how each responds to user selections because if the user makes a selection of a [Gifts Hone Marker] that isn't B than the 2 sets don't intersect so

= count({<[Gifts Type Code] = {c}, [Gifts Honor Marker] = {B}>} [Gifts ID])

would be more like

= count({<[Gifts Honor Marker]=, [Gifts Type Code] = {c}> * <[Gifts Honor Marker] = {B},[Gifts Type Code]=>} [Gifts ID])

Regards.

View solution in original post

2 Replies
pover
Partner - Master
Partner - Master

The syntax looks fine, but I've found a difference in how each responds to user selections because if the user makes a selection of a [Gifts Hone Marker] that isn't B than the 2 sets don't intersect so

= count({<[Gifts Type Code] = {c}, [Gifts Honor Marker] = {B}>} [Gifts ID])

would be more like

= count({<[Gifts Honor Marker]=, [Gifts Type Code] = {c}> * <[Gifts Honor Marker] = {B},[Gifts Type Code]=>} [Gifts ID])

Regards.

Not applicable
Author

Thanks a lot, that's very helpful.