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: 
giazitzoglou
Contributor III
Contributor III

Caslculated value in Text Box

I have a database with customers and sales in quantity and value. How can I sum the values and put it in a text of those sales that exceed a certain amount of quantities?

1 Solution

Accepted Solutions
giazitzoglou
Contributor III
Contributor III
Author

For some reason returns zero (0) as a result

View solution in original post

7 Replies
sergio0592
Specialist III
Specialist III

Hi,

If you want sales with quantity>4, try

=sum({<Quantity={">4"}>} Sales)  
giazitzoglou
Contributor III
Contributor III
Author

Thank you for your immediate answer but i forgot to mention that i have multiple entries for every customer and i need to define only those customers with a total sales quantity over a certain amount

sergio0592
Specialist III
Specialist III

Try with

=sum({<Customer={"=sum(Quantity)>4"}>} Sales)  
tresB
Champion III
Champion III

Try like:

=sum({<Customer={"=Sum(Sales)>100"}>} Sales)  
giazitzoglou
Contributor III
Contributor III
Author

For some reason returns zero (0) as a result

sergio0592
Specialist III
Specialist III

can you share a sample?

giazitzoglou
Contributor III
Contributor III
Author

Propably i was doing something wrong.
Now is working.

Thank you all