Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: add all results (numbers) located in group Headr? Post Reply Post New Topic
Author Message
Marko0916
Newbie
Newbie


Joined: 11 Jul 2011
Location: United States
Online Status: Offline
Posts: 2
Quote Marko0916 Replybullet Topic: add all results (numbers) located in group Headr?
    Posted: 11 Jul 2011 at 6:28am
I have a formula that i placed in the group header that gives me a total (number).  The formula is called "distinct_count"
 
I am trying to place the sum of all those totals in the group footer but i get an error saying that this field cann't be sum'd.
 
ex.
 
Group Header displays
 
Ursinfo.Lastname            @Distinct_count total number
 
Smith      220
Jones      234
 
So i would like to be able to add the 220 + 234 and place that total in the Group Footer.
 
 
I've been stuck on this one for a while.  Any help greatly appreciated.
 
Crystal Keeps me up Late
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 11 Jul 2011 at 7:55am

what is the DC formula doing?

likely rather than adding up 220 and 234 you can just add a new formula or Running Total to count the records again in teh way you want for a new total


Edited by DBlank - 11 Jul 2011 at 7:56am
IP IP Logged
Marko0916
Newbie
Newbie


Joined: 11 Jul 2011
Location: United States
Online Status: Offline
Posts: 2
Quote Marko0916 Replybullet Posted: 11 Jul 2011 at 8:32am
I know i didn't word that question clearly, my apologies.
 
distinct_count =  Count ({USRINFO.LOGINNAME}, {@provider name})
generates a number result in the group header field.  But i have lets say 6 rows (gh3 results) on page one, 8 on page 2. 
 
What is the formula for adding up the results of a formula field if it is a number?  I'm getting errors that this field cann't be sum'd for some reason.
 
I am a newbie to CR, sorry. 
 
 
 
 
Crystal Keeps me up Late
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 11 Jul 2011 at 11:11am
Count ({USRINFO.LOGINNAME}, {@provider name}) is a summary at the group level. FYI - This types of Summaries DO work in headers where as Running Totals or variable formulas do not.
Summarized fields (like a group count/summary) cannot be summarized again.
All you have to do is make a nother formula that summarizes without the grouping which is the same as adding your groups together...
Count ({USRINFO.LOGINNAME})
 
IP IP Logged
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.016 seconds.