Print Page | Close Window

Count

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Technical Questions
Forum Discription: Formulas, charting data, Crystal syntax, etc.
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=16006
Printed Date: 01 May 2024 at 7:34pm


Topic: Count
Posted By: kims
Subject: Count
Date 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?



Replies:
Posted By: DBlank
Date 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.



Print Page | Close Window