title: Summations of values and showing result in the same row in iReport
body: <p>I am using iReport designer. I have four columns in report. Value of one column will be calculated by doing sum summation and subtraction of other columns.</p>
  
  <p>My result formula looks like this : </p>
  
  <pre><code>($V{cust_amount} == null ? new BigDecimal(0) : $V{cust_amount}).subtract( ($V{airlines_amount} == null ? new BigDecimal(0) : $V{airlines_amount}).subtract(($V{indi_amount} == null ? new BigDecimal(0) : $V{indi_amount}) ) )
  </code></pre>
  
  <p>But the result is coming just at the next row of the expected one. I am attaching a picture also.</p>
  
  <p><a href="https://i.stack.imgur.com/ftSlu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ftSlu.png" alt="enter image description here"></a></p>
  
  <p>Here the amount -15100 should come one the first row. But every value is coming just below the right row and first row is always null.</p>