Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
QSense
Creator II
Creator II

intersect two fields

Hello everyone ,

I have a question about intersection . İn set analysis with element fucntion p It can be done but

I couldnt .

I have two fields and I would like to count two fields's intersection

A and B are fields

I want count(A intersects B)

5 Replies
Not applicable

Hi,

The intersection is done by the the star : *

count({{A} * {B}}, xxx)

where {A} and {B} are two sets.

Fabrice

somenathroy
Creator III
Creator III

Count(DISTINCT{<A=P(B)>}A)

Regards,

Som

QSense
Creator II
Creator II
Author

When I take your script into my qw file,

It gives not responding error

Not applicable

Count(A&B)

somenathroy
Creator III
Creator III

P(B) returns all possible values of field B. If your table contains huge amount of records, it may arise considerable performance issue. So according to requirements you may impose some conditions through set within P() func, like Count(DISTINCT{<A=P({<Date={'$(=Max(Date))'}>}B), Date={'$(=Max(Date))'}>}A)

Regards,

som