Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Count on Group Totals Post Reply Post New Topic
Author Message
Ricky
Newbie
Newbie
Avatar

Joined: 10 Jun 2010
Location: South Africa
Online Status: Offline
Posts: 5
Quote Ricky Replybullet Topic: Count on Group Totals
    Posted: 07 Jul 2012 at 3:43am
Hi there
 
Heres hoping someone can assist. I have been at this for toolong and giving up.
 
I have quite a complex report which sums data into totals on a group.
I have the following formula's in the detail section.
{Primary} If x (type) = primary then y (an amount is returned here)
Preprimary - if x = preprimary then y
High - if x = high then Y
 
I then have a group by company
 
I sum myabove fields ( primary column, preprimary and secondary) - this is on my group footer - I have tried it on header aswell
 
Then I have another 4 fomula's per type which I've placed on the group footer
If primary is <1 then nonpaying
if Primary in 1to500 then R500 bracket
if primary in 501-1000 then 1000 bracket
if primary >1000 then 1001 bracket
 
Now I want to count how many companies are non paying for primary, preprimary and high etc
 
I have tried running totals, sum's etc but it keeps saying this field cannot be summarised
I have placed the totals on the report footer but still nothing
 
I have created more formulas - if amount > 1 then 1 else 0
and then tried to sum that - but it says summary not allowed
 
I tried a running total putting the formula in evalute still no luck
 
Really appreciate some help
 
Thankyou
 
I
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 10 Jul 2012 at 3:48am
use 4 RTs with evaluate fomrulas
make the evaluate formula for each the group value you want to check against 
 
example:
RT name=non_paying
field to summarize=company
type=distinctcount
evlauate=use a formula
sum(@primary,table.company)<1
reset=never
place in report footer


Edited by DBlank - 10 Jul 2012 at 3:49am
IP IP Logged
Ricky
Newbie
Newbie
Avatar

Joined: 10 Jun 2010
Location: South Africa
Online Status: Offline
Posts: 5
Quote Ricky Replybullet Posted: 10 Jul 2012 at 5:57am
Big%20smile
Thankyou soooooo much - I just tried one and it looks like it is working
Really do appreciate the help
 
 
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.