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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

Cannot get WHERE statement to work in script..

Hi, I am trying to use a where statement in my script to only load in specific Stock Movement Codes but i can not get it to work.

Can anyone help me please?

I have tried ..

FROM $(cFileName) (qvd) where [Stock Movement Reason Code]='1,2,19,21,22,34,35,62,3,5,16,18';

FROM $(cFileName) (qvd) where [Stock Movement Reason Code]=('1,2,19,21,22,34,35,62,3,5,16,18');

FROM $(cFileName) (qvd) where [Stock Movement Reason Code]=1,2,19,21,22,34,35,62,3,5,16,18;

Thanks

1 Solution

Accepted Solutions
Not applicable

hi Use Match() function...

where match([Stock Movement Reason Code],'1','2')

Hope that helps

Sravan

View solution in original post

1 Reply
Not applicable

hi Use Match() function...

where match([Stock Movement Reason Code],'1','2')

Hope that helps

Sravan