Good to know, should have put that in your original post. So... you want:
read - rejected - discarded?
For that I would just use the aggregator. For the last two rows, multiply the number by -1 before sending it to aggregation and then sum() them. What about the skipped value if it is non-zero? You may need to not send it to the aggregator at all, if that's the case just use a constraint.
-craig
"You can never have too many knives" -- Logan Nine Fingers
Otherwise use stage variables in a Transformer stage to "remember" the value from the previous row, a technique that has been explained more than once on DSXchange.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.