Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Categorizing Data Post Reply Post New Topic
Author Message
SBean
Newbie
Newbie


Joined: 08 Jun 2015
Online Status: Offline
Posts: 2
Quote SBean Replybullet Topic: Categorizing Data
    Posted: 22 Jul 2015 at 5:29am
Hello,
I am a novice Crystal Report user and I have the following issue:

One person may have multiple charges and each charge i have coded as either violent or non-violent. What i need to do now is write a formula that says if there is a violent charge in someone's history then select this and not the non-violent charge. Happy to provide more information. Desperately seeking help.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 24 Jul 2015 at 3:36am
do you mean you select only persons with a violent history but show the entire history?

Edited by DBlank - 24 Jul 2015 at 3:36am
IP IP Logged
SBean
Newbie
Newbie


Joined: 08 Jun 2015
Online Status: Offline
Posts: 2
Quote SBean Replybullet Posted: 24 Jul 2015 at 3:39am
i actually want to show only those that have only a non-violent history which requires weeding out those cases that have both
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 24 Jul 2015 at 3:45am
try this:
group on the person
create a "flag" formula to sum "violence records"
if field='violent' then 1 else 0
sum this at the person group
use a group select to only select groups where the sum=0
sum(@flag,person)=0
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.016 seconds.