Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Counting number of records Post Reply Post New Topic
Page  of 2 Next >>
Author Message
KevV
Senior Member
Senior Member


Joined: 19 May 2011
Online Status: Offline
Posts: 106
Quote KevV Replybullet Topic: Counting number of records
    Posted: 23 Jul 2013 at 11:15am
I have a report with several groups with SUM fomulas in each one. I am trying to do a count of all the records that are showing in the report and adding it in the group footer. I have the numbers converted to strings but I keep getting errors.
 
 
Thanks
KevV
IP IP Logged
praveeng
Senior Member
Senior Member
Avatar

Joined: 11 Jul 2011
Online Status: Offline
Posts: 165
Quote praveeng Replybullet Posted: 23 Jul 2013 at 11:41am
Try with Running total.
Praveen Guntuka,
praveen_guntuka@yahoo.com
IP IP Logged
KevV
Senior Member
Senior Member


Joined: 19 May 2011
Online Status: Offline
Posts: 106
Quote KevV Replybullet Posted: 23 Jul 2013 at 11:46am

Doing a running total only gives you the option of adding one group. I need the total of all records from all groups.

 
KevV
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 23 Jul 2013 at 11:50am
you cannot sum a sum unless you use variable formulas
However you might just rethink the process from summing  sums to summing the details again at the report footer instead of the group footer.


Edited by DBlank - 23 Jul 2013 at 11:51am
IP IP Logged
KevV
Senior Member
Senior Member


Joined: 19 May 2011
Online Status: Offline
Posts: 106
Quote KevV Replybullet Posted: 23 Jul 2013 at 11:57am
I tried doing them in the detail section but I could not get the other calculations to come out right and if the field did not have anything in it, it would leave a blank line in the report even if I told it to suppress blank.
 
KevV
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 23 Jul 2013 at 11:59am
what is your sum at the group level?
IP IP Logged
KevV
Senior Member
Senior Member


Joined: 19 May 2011
Online Status: Offline
Posts: 106
Quote KevV Replybullet Posted: 23 Jul 2013 at 12:10pm

It is in a payroll system and I have them grouped by their paycode. and then I do a running total and set it to evaluate for each record and reset on change of name. The sums are in the group footers for each. I technically only have one group the others are just sections of that group. like group 1a,1b and so on.

 
KevV


Edited by KevV - 23 Jul 2013 at 12:16pm
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 24 Jul 2013 at 3:35am
create a new running total that is the same as your curretn one but do not not reset it.
IP IP Logged
KevV
Senior Member
Senior Member


Joined: 19 May 2011
Online Status: Offline
Posts: 106
Quote KevV Replybullet Posted: 24 Jul 2013 at 6:00am

I do a sum on the others so it adds up all the hours. What I need is a count of how many actuall records I have. So it may be 10 hours of time but it is only one record. If I just set it to never reset it just adds all the hours. I have tried doing a count but that did not work either.

 
KevV
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 24 Jul 2013 at 6:06am
distinct count of a primary key (or combination of 2 primary keys)
IP IP Logged
Page  of 2 Next >>
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.000 seconds.