java - SQL Variable not returning the correct sum -
i have 3 variables in current report writing , variables -total wo -total -grand total
the totalwo , totalso variables correctly adding quantity parameters being passed ever reason when make grandtotal variable , pass variable expression:
($v{totalwo_qty} + $v{totalso_qty})
when report prints displays 3 variables this"
total wo: 352 total so: 1009 grand total: 16421
i can't figure out why doing beacuse in grandtotal variable expression i'm passing , adding 2 variable. if me figure out please let me know. thank you!
i can post code like
also using ireports write these reports
@amir in comments helped me figure out (indirectly). issue 'increment type' wo , totals needed set 'none' , grand total needed set 'column'. before grandtotal variable set 'increment type: none'. still not sure why has way know working now.
what helpe me amir's wording saying "probably it's accumulating rather displaying last value of other variables".
question answered simple brainstorming- thank :)
Comments
Post a Comment