Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysys - "Not in"

Hello,

I´ve a table with customers and situation code (300 or 302). Some customers can have both situation code and others can have just one of them.

What are the expression that let me know which customers does have just one situation code? (300 or 302).

Thank you

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi try this

sum({$<customer = p({$<code={'300'}>}

customer) - p({$<code={'302'}>}

customer)>} Sales)

View solution in original post

4 Replies
Not applicable
Author

I need to know which customers have situation code=300 AND don´t have situation code=302

Anonymous
Not applicable
Author

Hi try this

sum({$<customer = p({$<code={'300'}>}

customer) - p({$<code={'302'}>}

customer)>} Sales)

Not applicable
Author

Hello Alfasierra,

This code above is working fine! Thank you.

Now... which is the expression to show me customers that have BOTH codes (300 and 302)?

Thank you

alexpanjhc
Specialist
Specialist

try

sum({$<customer = p({$<code={'300'}>}

customer)* p({$<code={'302'}>}

customer)>} Sales)