Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
vikas_nandanwar
Creator II
Creator II

Multiple filters in single expression

Hi,

How to use multiple filters in single expression?

I need following expression

Sum(Qty)

Exclude

Year = 2017 and

PType = Sal

My below expression is not working

Sum({<Ptype={"Sal"}>,<[Year]={"2017"}>} Qty)

Please suggest

Thanks,

Vikas

1 Solution

Accepted Solutions
Anil_Babu_Samineni

You are not suppose to do with 2 angular bracket like, Though try this?

Sum({<Ptype-={"Sal"},[TransactionDate.autoCalendar.Year]-={2017}>} Qty)

OR, If you want to do using OR operator do this

Sum({<Ptype-={"Sal"}>+<[TransactionDate.autoCalendar.Year]-={2017}>} Qty)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

7 Replies
Anil_Babu_Samineni

Exclude should be -=

Sum({<Ptype-={"Sal"}>,<[Year]-={2017}>} Qty)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
vikas_nandanwar
Creator II
Creator II
Author

Not Working

Sum({<Ptype-={"Sal"}>,<[TransactionDate.autoCalendar.Year]-={2017}>} Qty)

My expression

Anil_Babu_Samineni

You are not suppose to do with 2 angular bracket like, Though try this?

Sum({<Ptype-={"Sal"},[TransactionDate.autoCalendar.Year]-={2017}>} Qty)

OR, If you want to do using OR operator do this

Sum({<Ptype-={"Sal"}>+<[TransactionDate.autoCalendar.Year]-={2017}>} Qty)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
vikas_nandanwar
Creator II
Creator II
Author

Thanks this worked

Anil_Babu_Samineni

Great, Please close this thread

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Théo123
Contributor III
Contributor III

Bonjour,

SI <+> correspond à OR, à quoi correspond le ET ?

Cordialement

theoat
Partner - Specialist
Partner - Specialist

Bonjour,

<+> correspond à une union (OR), alors que <*> correspond à une intersection (ET).

Cordialement,
Théo ATRAGIE.