Jump to content
Changes to the Jaspersoft community edition download ×

how to get sum of field value


kalpesh.chavda

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You can use Variables to calculate the total. Check the docs here on how to use variables: http://community.jaspersoft.com/documentation/tibco-jaspersoft-studio-user-guide/v610/variables

in Jaspersoft Studio if you drop a field in the column footer, or summary band it will ask you if yu want to aggregate the value (i.e. sum, avg, etc) and automatically create the variable for you.

 

Link to comment
Share on other sites

hello,

in my subreport, my query is select  mobile from emp where id = 12;

when i run this query i am getting data

8888888888

2222222222

now in my main report i want to displya record like this:

name   mobile1            mobile 2

abc     8888888888      2222222222

Link to comment
Share on other sites

hello,

in my subreport, my query is select  mobile from emp where id = 12;

when i run this query i am getting data

8888888888

2222222222

now in my main report i want to displya record like this:

name   mobile1            mobile 2

abc     8888888888      2222222222

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