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

Joined: 31 Dec 2007
Location: United States
Online Status: Offline
Posts: 17
Quote Kathleen Replybullet Topic: Conditional Count Formula
    Posted: 28 Aug 2008 at 8:56am
I am trying to create a formula that will count how many times a particular box is checked in different fields. 
 
Meaning - If subname = "Continuous Service" and "Over 10 years" = Yes, then count
 
 
Can someone please help me set up a conditional count formula for something like this?  I'm trying like this but I'm getting several errors.

Count If({EvalDetail.SubName}="Continuous Service")and({@String to Number})=1)

 
IP IP Logged
neinta
Newbie
Newbie


Joined: 26 Aug 2008
Location: United States
Online Status: Offline
Posts: 6
Quote neinta Replybullet Posted: 28 Aug 2008 at 3:13pm
If ({EvalDetail.SubName}="Continuous Service" and {@String to Number} =1) then 1 else 0.

Then create a sum on the formula to get the total count.
IP IP Logged
sree123
Newbie
Newbie


Joined: 28 Aug 2008
Location: United States
Online Status: Offline
Posts: 1
Quote sree123 Replybullet Posted: 28 Aug 2008 at 7:58pm
Can I use Decode() as we use in oracle sql plus in crystal reports?
 
Thanks
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.188 seconds.