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

Qvd where clause

ID      marketID            marketDescription

1         101                          aaa

2         102                          bbb

3         103                         ccc

4         104                         ddd

5         105                         eee

7         106                         fff

8         107                         ggg

9         108                         hhh

i want to load the market id 104 ,105, 108 only

i tried in where clause

where MarketID=104 and MarketID = 105 and MarketID = 108

but its not working help me

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Logically it should be OR rather than AND. Try replacing and with or like:

where MarketID=104 or MarketID = 105 or MarketID = 108


There would be easier ways too.

View solution in original post

4 Replies
arulsettu
Master III
Master III

try this

where match(MarketID,'04' ,'105', '108')


or


where MarketID IN ('04' ,'105', '108')

tresesco
MVP
MVP

Logically it should be OR rather than AND. Try replacing and with or like:

where MarketID=104 or MarketID = 105 or MarketID = 108


There would be easier ways too.

gautik92
Specialist III
Specialist III

it shud work

jyothish8807
Master II
Master II

Hi Stephen,

Both the solutions mentioned below should work

Regards

KC

Best Regards,
KC