Hi Eeveryone, i've been stuck on that for days now.. I have a report where i am displaying data as below: ID Type Number_of_Vehicles 1 Car 1000 2 Lorry 200 3 Truck 400 I would like to sum only the Type "Car" and "Truck". I created a new variable named TOTAL, then the below properties: Variable Class: java.lang.Integer Calculation:Sum Variable Expression: ( $F{ID}== 1 || $F{ID}==3 ? $F{Number_of_Vehicles} : 0 ) But it gives me the last number that is "400" Can anyone figure this out? Thank you so much..