Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Count Post Reply Post New Topic
Author Message
kims
Newbie
Newbie
Avatar

Joined: 27 Mar 2012
Location: United States
Online Status: Offline
Posts: 1
Quote kims Replybullet Topic: Count
    Posted: 27 Mar 2012 at 4:10am
I am new to crystal reporting. I appreciate any help that can be given. What I am trying to do is count, for example:
 
Name Race Sex Notes Dob Age
xyz       B      M     oko   ##   32
mdn      W     F     idl      ##   28
juds      W     M     lid      ##   21
 
 
What I need is demographic totals.
# of w/m's
# of b/m's
# of w/f's
# of b/f's
 
and, an age range (age between 18-25, 26-35, etc....)
 
Can anyone help me learn how to count?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 27 Mar 2012 at 5:24am
if you do not have duplicates you can write different formulas do do sums on each type of count you want.
//WM
if race='W' and 'sex='M' then 1
sum(@WM)
 
if you do have duplicate rows
you can make running totals to do conditional counts
 
or you can make variable formulas
 
or possibly crosstabs depending on how you want this to look.


Edited by DBlank - 27 Mar 2012 at 5:24am
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.031 seconds.