Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Count at the Report Footer Post Reply Post New Topic
Author Message
Nav522
Senior Member
Senior Member


Joined: 25 Aug 2009
Location: United States
Online Status: Offline
Posts: 166
Quote Nav522 Replybullet Topic: Count at the Report Footer
     Posted: 26 Aug 2010 at 5:05am
Hello Folks,
                    Am trying to write a formula for counting the SETUP type but looks like am having trouble. I have a field called SETUP Type having 2 values 'MANUAL' and 'ELECTRONIC'. How would i get the count for each manual and electronic at the report footer?
 
I have 2 formuals created
If {Command.SETUP_TYPE} = 'ELECTRONIC' then count({Command.SETUP_TYPE})
and
If {Command.SETUP_TYPE} = 'MANUAL' then count({Command.SETUP_TYPE})
 
but its not giving the correct count. Any ideas?
 
Thanks


Edited by Nav522 - 26 Aug 2010 at 5:10am
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 26 Aug 2010 at 7:06am
Your formulas are saying if the value in the current row is = X then show me all total count for the field
 
basically there are 3 ways to do what you want (not inclusing grouping).
1. Shared variable formulas (not my cup o'tea but others can help you if you want that route)
2. Formulas to make 1 and 0
If {Command.SETUP_TYPE} = 'ELECTRONIC'  then 1 else 0
Sum this formula
If {Command.SETUP_TYPE} = 'MANUAL'  then 1 else 0
Sum this formula
3 Running Totals
Name=Electronic COunt
FIeld to SUmamrize=Command.SETUP_TYPE
Summary type=Count
Evaluate = use a formula
{Command.SETUP_TYPE} = 'ELECTRONIC' 
Reset = Never
 
Same thing for the other RT but change the formula to = MANUAL
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