Jump to content
Changes to the Jaspersoft community edition download ×

Utilizar una variable en otra variable


dafemuhdez
Go to solution Solved by hozawa,

Recommended Posts

Buenas tardes, desde hace rato estoy atascado en algo. Estoy realizando unos reportes y en el reporte me genera unos totales divididas por grupos, pero cada total de cada grupo depende del total del grupo anterior. Lo que estoy haciendo es que en una variable sumo los campos de valor de los detalles de cada grupo y en una nueva variable sumo los resultados de la variable anterior, para así ir acumulando el valor del resultado anterior, pero me genera unos valores que no coinciden y ni entiendo de donde los suma, porque no dan con ninguna suma de ningun grupo. En lo que me puedan colaborar, muchas gracias. 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

You'll need 2 variables - 1 to hold the current group's total and the other to hold the accumulative total.

On the first variable, set the reset type to the group you've created. On the second variable, set the reset type to "report".

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...