Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Technical Questions
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Technical Questions
Topic: filter a field and then count the instances
Author
Message
greenralph
Newbie
Joined: 14 Jun 2012
Location: United States
Online Status: Offline
Posts: 1
Topic: filter a field and then count the instances
Posted: 14 Jun 2012 at 3:47am
how to count the cases where the field equals a certain string value?
something like: If({fieldname}="string", Count({fieldname},0))
IP Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
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 Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
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
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
PRIVACY
|
CLICK PLAYS
|
KONACAD
© 2004-2026 Brian Bischof. All Rights Reserved.