Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Formula Help Post Reply Post New Topic
Author Message
sanchezgmc06
Senior Member
Senior Member
Avatar

Joined: 21 Jan 2011
Online Status: Offline
Posts: 107
Quote sanchezgmc06 Replybullet Topic: Formula Help
    Posted: 11 Sep 2012 at 1:54pm
Confused
Help
 
I have a report where i am trying to display the client if the client does not have an admission type diagnosis.
 
The client may have the following types of diagnosis admission, update, onset, or discharge. However all clients must have an admission diagnosis and i am trying to create this report where i can pull those clients whom do not have an admission type diagnosis.
 
here is what i tried. In the select expert i selected admission_type_dx_value and said is not one of "admission" however this is not working because it just excludes all the admission diagnosis for all clients and if they have another type of diagnosis they are displayed in my report which is incorrect
 
Im guessing i need some type of formula to evaluate if any of the rows of diagnosis entered have the field admission_type_dx selected as "admission"
 
am i being cofussing? 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 11 Sep 2012 at 2:03pm
Group on client
Set a flag formula for the diagnosis type you want
If diagtype='admission' then 1
Sum this at the group level. Now any client missing this will have a sum of zero
Use that in the group select expert
Sum(flag,client)=0
IP IP Logged
sanchezgmc06
Senior Member
Senior Member
Avatar

Joined: 21 Jan 2011
Online Status: Offline
Posts: 107
Quote sanchezgmc06 Replybullet Posted: 12 Sep 2012 at 6:23am
 Perfect!
 
this worked
 
The only difference was that i selected the sum in the select expert and said is less than or equal to 0
 
Again I am greatful for your response
 
 
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.031 seconds.