badir Posted August 30, 2007 Share Posted August 30, 2007 I am running into a problem doing the simplest of things. I've a report that uses one table and has two groups that display appropriately. The groups are BuildingPerson The problem is that while using the built-in group count for person I can never get the real count. There are 57 persons in my table and I get the following results: PersonCount placed in Building Footer = 2PersonCount placed in Person Footer = 1 ( even when there are more than one person in the group )PersonCount placed in detail = 1 I've tried each setting in the properties regarding eval time and eval group over and over and over and I can not get a real count for the life of me. It has to be something simple that I'm missing. Link to comment Share on other sites More sharing options...
svenn Posted August 30, 2007 Share Posted August 30, 2007 Look at using the built in report variables. On the variable tab there should be a variable for each of your groups. It is in the format Groupname_COUNT for example if you called your group Person there will be a variable called Person_COUNT This value gives the total number of records in a group. It resets each time your group value changes. Link to comment Share on other sites More sharing options...
badir Posted August 30, 2007 Author Share Posted August 30, 2007 I understand completely. The problem is that I am using Person_COUNT. It doesn't matter where I place that built-in. I always get a count less than 10. Same with Building_COUNT. When I place the variable in the report ( no matter which band ) with the default properties, I get the wrong count. What is actually being counted? Link to comment Share on other sites More sharing options...
samem_hr Posted August 30, 2007 Share Posted August 30, 2007 What is your expected output? Are you trying to get 57 persons as returned from the database? If so, you must map the relevant DB field to the respective variable. Eg: $V{Days} Variable Expression : $F{Days} I hope this helps you :) Link to comment Share on other sites More sharing options...
yurish Posted August 30, 2007 Share Posted August 30, 2007 Try to set group evaluation time. As i see you have as evaluation time "Now". Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now