Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: filter a field and then count the instances Post Reply Post New Topic
Author Message
greenralph
Newbie
Newbie


Joined: 14 Jun 2012
Location: United States
Online Status: Offline
Posts: 1
Quote greenralph Replybullet Topic: filter a field and then count the instances
    Posted: 14 Jun 2012 at 3:47am
Dead how to count the cases where the field equals a certain string value?
something like: If({fieldname}="string", Count({fieldname},0))
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Jun 2012 at 3:53am
running total or shared variable formula or an if-then formula to use 1 or 0
 
//if_then
if field='string then 1
sum the formula field
sum(@if_then)
 
Running Total
name=count_of_string
field to sumamrize=field
type=count
evaluate=use a formula
fieldname='string'
reset=never (unless you wnat group sub totals)
place in report footer (RTs do not work in headers)
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.