Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
dominicanlauf
Contributor III
Contributor III

sum up different values

Hello everybody,

I have a table that should sum up the pieces produced. There is a product A and a product B, which differ by the property "cylinder = 0 or> 0".

I would like to look at the number of produced pieces  of both products separately.

My idea was: if (cylinder = 0, sum (productionstatistic.produced))

if (cylinder> 0, sum (productionstatistic.produced)

This does not work.

Does anyone know how to solve the problem?

Thanks!

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Try: sum ({<cylinder={0}>}productionstatistic.produced)

Make sure to use the correct case sensitive field names.


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar

Try: sum ({<cylinder={0}>}productionstatistic.produced)

Make sure to use the correct case sensitive field names.


talk is cheap, supply exceeds demand