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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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

1 Solution

Accepted Solutions
swuehl
MVP
MVP

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
MVP
MVP

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!