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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

ASK.. Simple Syntax in edit script and expression

heelo all,

need help plis , thankss

what is syntax of "not in" or "in"??

example,

load

...

...

...

from ..... where status = 1;

and now i want to load where status is "in" or "not in" 1,2,3,

what is the syntax?

load

...

...

...

from .... where status NOT IN ('1','2','3'); <----- is that right??

or

from .... where status IN ('1','2','3'); <----- is that right??

plis correct me..

and in expression

usually like this,

SUM({<Status = {'1'}>}Sales)

same question,

what is the syntax of "not in" in expression??

thank you...

best regards!!

1 Solution

Accepted Solutions
suniljain
Master
Master

You can use

where (Status='1' or Status = '2' or Status ='3') ) ;

View solution in original post

6 Replies
Not applicable
Author

Hi Frozenring,

You can use the script as follows,

load

...

...

...

from ..... where status <> 1;

Regards!!!

Nilupa




suniljain
Master
Master

You can use

where (Status='1' or Status = '2' or Status ='3') ) ;

Not applicable
Author

hello sunin..

then what is not in??

hello nilupaboralessa,

how to use if not in more than 1?

and what is the syntax not equal or not in , in expression??

thank you all

Not applicable
Author

Hello Frozenring,


You can use as

...................WHERE STATUS<>1 OR STATUS<>2 OR STATUS<>3

Nilupa

Miguel_Angel_Baeyens

Hello Frozenring,

If you are loading from a QVD file, or you just don't want the server to do the job, I'd rather use for simplicity sake, the "match()" function for IN:

LOAD * FROM FILE.QVD (qvd)WHERE MATCH(STATUS, 1, 2, 3) > 1;


or NOT IN

LOAD * FROM FILE.QVD (qvd)WHERE MATCH(STATUS, 1, 2, 3) = 0;


Hope this helps

Not applicable
Author

thank you miguel,

best regards!