Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum of items that do not belong to the selected object

I have a table called warehouses with their sku.

If you selected a warehouse, it shows me the sum of all sku's in this warehouse. How do the sum of all sku that not are in selected warehouse?

4 Replies
MayilVahanan

HI

Are you want to exclude the selections?

Sum({1}Sku)

or

Are you expecting the remaining values from the selection?

=Sum({1}Sku) - Sum(Sku)

Its give the remaining sum of all sku that are not selected.

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Anonymous
Not applicable
Author

In general, for the excluded, you can use
sum({1-$} SKU)

In your case, probably this:
sum({<Warehouse=E(Warehouse)>} SKU)

Regards,
Michael

Not applicable
Author

Thanks, i try to use =Sum({1}Sku) - Sum(Sku), but the graphic come with others sku's of the others warehouses.

I need when i select for example 'WAREHOUSE1', show only  units of every sku of this warehouse, and show sum of units for this skus if exist in others warehouses.

sorry for my english, just speak spanish.... but i try to speak and write in english.

CELAMBARASAN
Partner - Champion
Partner - Champion

May be something like

Sum({<Warehouse=,Sku=P(Sku)>} Units)

Can you attach a sample if it didn't work for you?