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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to do in single IF Statement

Dear All,

How do we can mention the below condition in a single IF statement like:

=Count( if (Customer <> ('A','B','C','D','E','F','G'),Test1,Test2))

Is there any other alternative ?

4 Replies
sunil2288
Creator III
Creator III

Hi Kumar ,

You can use set analysis to solve this.

Like

IF(CUSTOMER-={'A','B','C','D'..},COUNT(TEST1),COUNT(TEST2))

Try this....

Thanks

Sunil

Not applicable
Author

is there any other option to mention more than one item for a perticular variable like

customer NOT in ('A','B','C',........)

colinh
Partner - Creator II
Partner - Creator II

Hi

Try count(if (match(Customer, 'A', 'B', 'C', 'D', 'E', 'F', 'G') = 0, Test1, Test2))

sunil2288
Creator III
Creator III

Hi Kumar,

Yes for that purpose only Set Analysis came in to existance.

You can do it Like

Count({$<Customer-={'A','B','C',...}>}Test1)

for writing NOT use -=(Minus and equal to combinely)

Regards

Sunil