Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

Some exception

Hi All, 

I need to set a where condition in the script while fetching the data  .I am supposed to fetch the data after 2021 . but in the year 2021 I have to consider two  values which is 'SKTR-3098' and 'DMLT-4001' how can I write the where condition for this ? 

Need some suggestion

Where (CreateDate)>2021 ( but consider 'SKTR-3098' and 'DMLT-4001'  in the year 2021) 

Thanks in Advance 

Labels (5)
1 Solution

Accepted Solutions
justISO
Specialist
Specialist

Hi, maybe use OR condition?, like:

WHERE (CreateDate>2021) OR (CreateDate=2021 AND match([value], 'SKTR-3098','DMLT-4001'))

View solution in original post

2 Replies
justISO
Specialist
Specialist

Hi, maybe use OR condition?, like:

WHERE (CreateDate>2021) OR (CreateDate=2021 AND match([value], 'SKTR-3098','DMLT-4001'))

MarcoWedel

If CreateDate indeed is a date, as the name suggests, you might have to use 

Year(CreateDate)>2021

instead of just

(CreateDate)>2021