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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Filter for a chart

Hello !!

I have this small example including products and their actual stock value. As I am only interested in those products, where the sum of all stock values is lower than 0, I would like to have the rows with positive values eliminated. How can I do that ?

Thanks a lot, Sascha

Labels (1)
1 Solution

Accepted Solutions
jerem1234
Specialist II
Specialist II

Try:

Sum({<Product = {'=sum([On Stock])<0'}>}[On Stock])

Hope this helps!

View solution in original post

3 Replies
jerem1234
Specialist II
Specialist II

Try:

Sum({<Product = {'=sum([On Stock])<0'}>}[On Stock])

Hope this helps!

jerem1234
Specialist II
Specialist II

You can also use:

if(Sum([On Stock])<0, Sum([On Stock]))



Anonymous
Not applicable
Author

Thanks a lot, worked fine.