Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
settu_periasamy
Master III
Master III

where clause with two criteria

Hi ,

i have the table like the below. I want all the data, except the year 2014 , and Month May, Jun, Jul & Aug. 

 

dataYear1Month1Sales
A2012Jan4816
B2012Feb4125
C2012Mar4409
D2012Apr4037
E2012May4972
A2012Jun4497
B2012Jul4333
C2012Aug4526
D2012Sep4985
E2013Jan4596
A2013Feb4460
B2013Mar4061
C2013Apr4024
D2013May4154
E2013Jun4128
A2013Jul4521
B2013Aug4655
C2014Jan4721
D2014Feb4620
E2014Mar4480
A2014Apr4293
B2014May4172
C2014Jun4201
D2014Jul4212
E2014Aug4406

I tried the below script

Table1:

LOAD data,

     Year1,

     Month1,

     Sales

FROM

[data1.qvd](qvd)  Where( Year1<>'2014' and Month1='May' and Month1='Jun' and Month1='Jul'  and Month1='Aug');

Could you please suggest?

1 Solution

Accepted Solutions
Anonymous
Not applicable

Where not (

( Year1=2014' )

and

( Month1='May' or Month1='Jun' or Month1='Jul'  or Month1='Aug' ) ) ;

View solution in original post

2 Replies
Anonymous
Not applicable

Where not (

( Year1=2014' )

and

( Month1='May' or Month1='Jun' or Month1='Jul'  or Month1='Aug' ) ) ;

tresesco
MVP
MVP

Try like:

Where Not ( Year1=2014 and (Month1='May' or Month1='Jun' or Month1='Jul'  or Month1='Aug'));