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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
london1980
Contributor III
Contributor III

Sum function with 2 Conditions

Hi All,

I've got this sum function that gives me the total of Available_Qty where Country_Code is 7

sum({<[Country_Code]={'$(=7)'}>} [Available_Qty])

I want to add one more condition into this

"and where Warehouse_Code is A1"

Can anyone help me adding this into the function?

thanks

MT

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

You don't need a dollar sign expansion for a constant value.

Try

sum({<[Country_Code]={'7'}, [Warehouse_Code] = {'A1'} >} [Available_Qty])

View solution in original post

2 Replies
swuehl
Champion III
Champion III

You don't need a dollar sign expansion for a constant value.

Try

sum({<[Country_Code]={'7'}, [Warehouse_Code] = {'A1'} >} [Available_Qty])

london1980
Contributor III
Contributor III
Author

Works beautifully, many thanks!