Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

hopkinsc
Valued Contributor II

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

Cannot get WHERE statement to work in script..

hi Use Match() function...

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

Hope that helps

Sravan

1 Reply
Not applicable

Cannot get WHERE statement to work in script..

hi Use Match() function...

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

Hope that helps

Sravan