Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: If Then Question Post Reply Post New Topic
<< Prev  Page  of 2
Author Message
hugo69
Groupie
Groupie


Joined: 15 Feb 2010
Online Status: Offline
Posts: 53
Quote hugo69 Replybullet Posted: 09 Mar 2010 at 1:30pm
What if I wanted to place it in the group footer, to get a count of how many for each inmate?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 09 Mar 2010 at 1:34pm
Not sure. You mean you have to count every instance per inmate where there is an opening record of 'HELP' and no closing record of 'Stop'?
IP IP Logged
hugo69
Groupie
Groupie


Joined: 15 Feb 2010
Online Status: Offline
Posts: 53
Quote hugo69 Replybullet Posted: 09 Mar 2010 at 1:49pm
Yes...  and the above RT did not work.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 09 Mar 2010 at 2:16pm

The RT was to count inmates,

To count instances per inmate try this to see if it works for you:
FOrmula as "InmateOpenCount"
if field1='Help' then 1 else if Field2= 'Stop' then -1 else 0
Sum this formula field at the Group inmate level (and place on the group inmate footer.
Does it give you the # you want?


Edited by DBlank - 09 Mar 2010 at 6:11pm
IP IP Logged
hugo69
Groupie
Groupie


Joined: 15 Feb 2010
Online Status: Offline
Posts: 53
Quote hugo69 Replybullet Posted: 09 Mar 2010 at 4:24pm
I think that may work!
IP IP Logged
<< Prev  Page  of 2
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