Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Exclusive most current date Post Reply Post New Topic
Author Message
tech7
Newbie
Newbie


Joined: 02 Sep 2011
Location: United States
Online Status: Offline
Posts: 5
Quote tech7 Replybullet Topic: Exclusive most current date
     Posted: 06 Sep 2011 at 9:39am
I am trying to write a report on a database containing a field of multiple values which are assigned a date. 
(example:  client actions by date) 
 How do I display "x" values(actions) with most current date excluding any "y" or '"z" values(actions) which have a date > the most current "x" value?    The max date is showing the max date for any action in this field.  I want to the specific "x" value on the report for each record that matches that criteria and I am going to sort it by the counselor who logged it.   Please help. 
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 06 Sep 2011 at 11:18am
Please show how your data is set up.  What are the fields?  What is the format of the field that contains multiple values?  What type of database are you connecting to?
 
-Dell
IP IP Logged
tech7
Newbie
Newbie


Joined: 02 Sep 2011
Location: United States
Online Status: Offline
Posts: 5
Quote tech7 Replybullet Posted: 06 Sep 2011 at 1:00pm
cliactionlog cliAL_Date date
cliactionlog cliAL_Counselor varchar(50)
cliactionlog cliAL_Action varchar(50)
MySQL
IP IP Logged
tech7
Newbie
Newbie


Joined: 02 Sep 2011
Location: United States
Online Status: Offline
Posts: 5
Quote tech7 Replybullet Posted: 06 Sep 2011 at 1:10pm

This might make more sense:  Display client IDs which have P1,P2,P4 or P5 values in Client Action Log by the action with the most current date but exclude any records which contain an action beginning with D or A with an action date > the most current P1,P2,P4,P5 action date.

I used the Maximum date function to find the record for actions: P1, P2, P4 or P5 with the most current date and placed it within my group (by Action) on the report.  However, I cannot seem to figure out how to exclude those records which have a D or A and an action date > the most current P dates on my report.  
Thanks!
IP IP Logged
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