Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Formula to iterate through multiple columns Post Reply Post New Topic
<< Prev Page  of 2
Author Message
Matt_123
Newbie
Newbie


Joined: 19 Jul 2010
Online Status: Offline
Posts: 5
Quote Matt_123 Replybullet Posted: 20 Jul 2010 at 12:16pm

Yeah the original code didn't account for nulls but they did have 'convert nulls to default' on which sometimes works.

In response to your earlier reply: unfortunately no, In your example it counts the total clients if any Outcomes are not null. I need to count the number of clients for each Outcome where that Outcome is not null for a client.
 
For example, if I was to hard code it I would manually write out
"Outcome_1" and place distinctcount of the formula for the client count
 
[Formula code: OC_1_ClientCount]
if not isnull({OC_1})
then {Client_ID}
else {@null}         *  
 
'@null' is a blank formula placed to remove the +1 count.
 
And then do the same for OC_2, OC_3, etc. down the list.
 
Does that make sense?
 
Thanks for your help with this wacky issue,
-Matt
 
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 20 Jul 2010 at 1:00pm
OK
just change the formula to patientOC1True
and the formula to
NOT isnull(OC_1)
 
then create another for OC_2 etc.
IP IP Logged
<< Prev Page  of 2
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.030 seconds.