Jump to content
We've recently updated our Privacy Statement, available here ×

jasper report calculation using current and next row


nithinabaq.us

Recommended Posts

  • 5 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

The calculating of difference between the current and the next/previous record is inter-row calculation, for which Jasper has little support. It’s quite difficult to handle it using Jasper. In this case you can try esProc, in which the next record can be represented, for instance, by amount[1] and thus the difference between it and the current record is amount-amount[1]. In this manner the growth rate between two records can be represented by (amount-amount[-1])/amount[-1].


 


Jasper can connect to an esProc script through JDBC and calls it in the same way as that in which it calls the stored procedure. See http://blog.raqsoft.com/?p=2918 for more details about the topic. 


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...