Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
jenmclean
Contributor III
Contributor III

Exclusions

What is the best way to write the following:

Sum(If(INV|DetTypeID = '4' and Match(KEY|ProductNumber = 'WARRANTY'),INV|InvoiceAmount)) as GR|Labor, //Labor

If DetailType = 4 then exclude product  number "warranty", include invoice amount and save as gross labor.

Thanks in advance!

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Sum(If(INV|DetTypeID = '4' and not Match(KEY|ProductNumber = 'WARRANTY'),INV|InvoiceAmount)) as GR|Labor,


or


Sum(If(INV|DetTypeID = '4' and KEY|ProductNumber <> 'WARRANTY',INV|InvoiceAmount)) as GR|Labor,


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar

Sum(If(INV|DetTypeID = '4' and not Match(KEY|ProductNumber = 'WARRANTY'),INV|InvoiceAmount)) as GR|Labor,


or


Sum(If(INV|DetTypeID = '4' and KEY|ProductNumber <> 'WARRANTY',INV|InvoiceAmount)) as GR|Labor,


talk is cheap, supply exceeds demand