Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Table showing only organisations that have both products

Hi,

Wondering if you can help. I have a list of organisations. I want to have a table which only shows the organisations that have purchased both products. What expression do I use?

This is the table I have at the moment

OrganisationQuantity Product 1. =count(product 1)Quantity Product 2 =count(product 2)
ABC 150
ABC 204
ABC 31010
ABC 400
ABC 506
ABC 634

I only want a table which shows Organisation ABC 1 and ABC 6, as they have purchased both products,

Thank you in advance,

Rebecca

1 Solution

Accepted Solutions
ecolomer
Master II
Master II

In the dimension:

=if(count(P1)*count(P2) > 0, Organisation, null())

View solution in original post

4 Replies
ecolomer
Master II
Master II

You can use this

Q(P1) x Q(P2) > 0 

if both are <> 0 the product are <> 0 but if = 0 one al most are = 0

ecolomer
Master II
Master II

In the dimension:

=if(count(P1)*count(P2) > 0, Organisation, null())

Not applicable
Author

Thank you very much!

ecolomer
Master II
Master II

your welcome