Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: SUM OF DISTINCT COUNT Post Reply Post New Topic
Author Message
jbalbo
Senior Member
Senior Member
Avatar

Joined: 17 Feb 2011
Online Status: Offline
Posts: 219
Quote jbalbo Replybullet Topic: SUM OF DISTINCT COUNT
     Posted: 24 May 2011 at 11:59am
Hi,
 
Is there a way to show the sum on a report footer of the distint counts of a field in a group footer?
it breaks five tiimes showing discint counts then i want to totla them in the footer.
 
Thx
 
 
IP IP Logged
Keikoku
Senior Member
Senior Member


Joined: 01 Dec 2010
Online Status: Offline
Posts: 386
Quote Keikoku Replybullet Posted: 25 May 2011 at 2:54am
For example:

GroupA
5
GroupB
6
GroupC
2

Total 13


Distinct count makes me think of various things.

Edited by Keikoku - 25 May 2011 at 2:54am
IP IP Logged
comatt1
Senior Member
Senior Member
Avatar

Joined: 19 May 2011
Online Status: Offline
Posts: 337
Quote comatt1 Replybullet Posted: 25 May 2011 at 2:55am
A little confusing with your post.

you could just have the distinct count in a running total, follow the key field for the detail and have it never reset. That should show the total over the full report.
IP IP Logged
jbalbo
Senior Member
Senior Member
Avatar

Joined: 17 Feb 2011
Online Status: Offline
Posts: 219
Quote jbalbo Replybullet Posted: 25 May 2011 at 5:48am
sorry it is confusing..
I am groupng on a date
each group shows distinct clients for that day
then in the report footer I want to show the avg for the week
 
monday 10..(10 is the distinct count) each line below is a group footer
tuesday  5
wed       10
thurs      5
fri           10
 
footer.. avg of 8
 
Thanks
 
IP IP Logged
Keikoku
Senior Member
Senior Member


Joined: 01 Dec 2010
Online Status: Offline
Posts: 386
Quote Keikoku Replybullet Posted: 25 May 2011 at 6:36am
Use a variable to do a running total, then do an average over the variable.

I am not sure if a running total field will work, but you can try that first.
IP IP Logged
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