Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

j_schmidt
Contributor

Data editor and WHERE IN

Hi,

i am fetching data from a QVD in the data editor and i would like to perform a SQL equivalent of WHER IN.

Can anybody tell me how to do this?

Basically like this:

LOAD

  *

FROM [lib://MyFolder/test.qvd] (qvd)

 

WHERE (my_field NOT IN (20, 30)

;

1 Solution

Accepted Solutions
maheshyadav
New Contributor III

Re: Data editor and WHERE IN

Hi,

U can using match function

LOAD

  *

FROM [lib://MyFolder/test.qvd] (qvd)

WHERE not match(my_field,'20','30');

5 Replies
MVP
MVP

Re: Data editor and WHERE IN

There is no IN operator in QV/QS. Use Match instead:


     WHERE (Match(my_field, 20, 30) = 0)

maheshyadav
New Contributor III

Re: Data editor and WHERE IN

Hi,

U can using match function

LOAD

  *

FROM [lib://MyFolder/test.qvd] (qvd)

WHERE not match(my_field,'20','30');

sureshqv
Esteemed Contributor III

Re: Data editor and WHERE IN

try this

where my_field not in('d','c','f');

j_schmidt
Contributor

Re: Data editor and WHERE IN

Thank you!

j_schmidt
Contributor

Re: Data editor and WHERE IN

Thank you!

Community Browser