Jump to content
Changes to the Jaspersoft community edition download ×

count function


yurish

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

if you mean every row then here we go:

 

in my report i am printing city details, so each row represents a city+ number of employees, i am counting based on the city_name field.

 

- create a new variable

Variable name -- whatever you want i.e total

class type - java.lang.integer

calculation type - Count

Reset Type - Report

Increment type - none

 

variable expression - $F{city_name} - will be different for you obviously, but is the rows you want to count.

 

hope this helps, i am new to iReports myself but learning fast, hopefully looking at other peoples problems will help me learn quicker!

Post edited by: lordy86, at: 2007/08/23 14:15

Link to comment
Share on other sites

There is a variable built into each report called REPORT_COUNT. It contains the total number of records processed from your data source. If you are not using a Print when Expression on your detail band this will give you the value that you are looking for.
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...