Print Page | Close Window

Records with last date for specific action

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Technical Questions
Forum Discription: Formulas, charting data, Crystal syntax, etc.
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=14265
Printed Date: 28 Apr 2024 at 2:18pm


Topic: Records with last date for specific action
Posted By: tech7
Subject: Records with last date for specific action
Date Posted: 02 Sep 2011 at 9:40am
I need to show on a report all client records with the most current date for a specific field.   For example: I want to display all the client records who contain a "P1" value in a specific field.  However, I don't want all "P1" values to display on the report for a client.  I just want the "P1" value with the most current date.



Replies:
Posted By: hilfy
Date Posted: 06 Sep 2011 at 11:26am
If you don't have to do any summary calculations, this is actually fairly easy.
 
1.  If you haven't already, group by client.
2.  Sort descending on the field that contains the date for "P1".
3.  Put the data in the client group header and suppress the details section.
 
This will show the most current "P1" record for each client.
 
-Dell


-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics


Posted By: tech7
Date Posted: 06 Sep 2011 at 4:35pm
Thanks.  I figured that part out.    I found out I had more which I posted in another post.   I appreciate the help though!



Print Page | Close Window