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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Syntax for Multiple Where Clauses

I want to use two where clauses for the same table:

from...

Where Year("Oppo_Opened")>=2010

Where Field("Oppo_Type") = Record(Sales);

What is the correct syntax for this?

Labels (1)
1 Solution

Accepted Solutions
MarcoWedel
MVP
MVP

Where Year("Oppo_Opened")>=2010 AND Field("Oppo_Type") = Record(Sales);

View solution in original post

5 Replies
MarcoWedel
MVP
MVP

Where Year("Oppo_Opened")>=2010 AND Field("Oppo_Type") = Record(Sales);

MK_QSL
MVP
MVP

Use only one Where and And between two conditions...

Something like

Where Customer = 'A' And Country = 'B'

MarcoWedel
MVP
MVP

Are you talking about SQL selects, because your where clause does not seem to be QV script load syntax?

Not applicable
Author

Thanks guys!

Definitely on the right track, but my syntax is still off. 

For the second one -- how do i do  -- WHERE (Fieldname) contains RecordName.

I have several opportunity types, but I only want to load those that have 'Sales' in Oppo_Type field.

MarcoWedel
MVP
MVP

Where Oppo_Type = 'Sales';