Link to home
Start Free TrialLog in
Avatar of Dave Stone
Dave StoneFlag for United States of America

asked on

Crystal Reports Show Only Current Record

Hello,
      I have a report that the experts here helped me with. I needed to only see the most recent records for a vendor report. I thought I got what I needed by grouping the report by Vendor and sorting the records by rating date (ascending). I then suppressed the Detail section and GH1. Moved the information I wanted to see to GF1 (Group Footer 1).  
The Group Footer shows information for the last record in the group.
The problem now is if I use select expert to only see specific ratings the report will  go back to when that that specific rating may have been.
Perhaps this is not clear. The table I am looking at has the vendor id and a vendor rating, ( C,X,E,G,etc..), and the date when one of these specific ratings was assigned to it. The rating can change for any given vendor at any given time when they are evaluated. I am trying to get a report that will only show me vendors with a current “C” or “X” rating. Any help with this would be appreciated.

Thank you
Avatar of Ido Millet
Ido Millet
Flag of United States of America image

Create a formula that returns the rating date if the rating is “C” or “X” and an old date otherwise.

Add to the Report Group Selection Formula a condition of:
MAX({Rating_Date}, {Vendor_ID}) = MAX({@That_Formula}, {Vendor_ID})
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dave Stone

ASKER

Perfect. Thank you.