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: 
mrichman
Creator II
Creator II

How to use set analysis with if statement?

Hi Community,

How can I best approach the following issue. I have two fields, which likely have the same values (type1 and type2) and want to count based on customer ID.

Example:

Data:

LOAD * inline [

Customer|Type1|Type2

Astrida|TV|Radio

Astrida|TV|Ref

Astrida|TV|TV

] (delimiter is '|');


In word: only count Customer if Type1 and Type2 have the equal field, and ignore all rows which do not comply with the formula.


Thanks in advance.


Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

2 Replies
sunny_talwar
MVP
MVP

mrichman
Creator II
Creator II
Author

Hi Sunny, thanks. Some lag occured.