Avatar of rporter45
rporter45
 asked on

Maximum (up to 2) Records

Hi there,

Can you please help with this nagging issue?

There is date in a table and the field I am using is a date field.  I'd like to extract the TWO most recent entries in the field - I know you can use min and max but can you select the number of min/max fields?

Thanks very much in advance,

CS
Crystal Reports

Avatar of undefined
Last Comment
James0628

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Mike McCracken

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
rporter45

ASKER
Hi there,

Can you please tell me a little more regarding this?  I have it currently group by the date (in the command insert group, it allows you to sort according to a specified order etc. but I don't see anything that would directly refer to what you mention.

Thank you - cs
Mike McCracken

Look at

REPORT --> GROUP SORT EXPERT

mlmcc
rporter45

ASKER
It's dimmed out - no ability to sort.

cs
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
SOLUTION
James0628

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
rporter45

ASKER
Works perfectly!

Thank you - cs
James0628

You're welcome.  Glad I could help.

 James