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

applying multiple conditions on qvd

hi

i have the script am loading data from QVD

LOAD Month,

     [Salesman ID],

     [Customer ID],

     [Transaction ID],

     Year,

     Day,

     [Product ID],

     [Serial No],

     [List Price],

     Sales,

     [Gross Margin]

FROM

(qvd)where Year=2008 and [Product ID]=2000 ;

i need this out put:

Sales  of

YEAR=2008,2006 and [Product ID]=2000,1000

1 Solution

Accepted Solutions
ashfaq_haseeb
Champion III
Champion III

Hi,

Try below

LOAD Month,

     [Salesman ID],

     [Customer ID],

     [Transaction ID],

     Year,

     Day,

     [Product ID],

     [Serial No],

     [List Price],

     Sales,

     [Gross Margin]

FROM

(qvd)where match(Year'2008','2006') and match([Product ID],'2000','1000');

Regards

ASHFAQ

View solution in original post

4 Replies
alexandros17
Partner - Champion III
Partner - Champion III

LOAD Month,

     [Salesman ID],

     [Customer ID],

     [Transaction ID],

     Year,

     Day,

     [Product ID],

     [Serial No],

     [List Price],

     Sales,

     [Gross Margin]

FROM

(qvd)where (Year=2008 or Year=2006) and ([Product ID]=2000 or [Product ID]=1000);

let me know

ashfaq_haseeb
Champion III
Champion III

Hi,

Try below

LOAD Month,

     [Salesman ID],

     [Customer ID],

     [Transaction ID],

     Year,

     Day,

     [Product ID],

     [Serial No],

     [List Price],

     Sales,

     [Gross Margin]

FROM

(qvd)where match(Year'2008','2006') and match([Product ID],'2000','1000');

Regards

ASHFAQ

its_anandrjs

Load your script like

LOAD Month,

     [Salesman ID],

     [Customer ID],

     [Transaction ID],

     Year,

     Day,

     [Product ID],

     [Serial No],

     [List Price],

     Sales,

     [Gross Margin]

FROM

(qvd)

where ( Match(Year,'2008','2006') and Match([Product ID],'2000','1000') );

PrashantSangle

Hi,

Try with wildmatch() also

Like

where Wildmatch(Year,'2008','2006') and Wildmatch([Product ID],'2000','1000')

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂