Solved

Maximum (up to 2) Records

Posted on 2012-03-16
7
225 Views
Last Modified: 2012-03-26
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
0
Comment
Question by:rporter45
  • 3
  • 2
  • 2
7 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 300 total points
Comment Utility
No you can't really.

If you always want the TOP 2 there is an option to select that.

Use the GROUP SORT EXPERT under the REPORT menu

mlmcc
0
 

Author Comment

by:rporter45
Comment Utility
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
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
Look at

REPORT --> GROUP SORT EXPERT

mlmcc
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:rporter45
Comment Utility
It's dimmed out - no ability to sort.

cs
0
 
LVL 34

Assisted Solution

by:James0628
James0628 earned 200 total points
Comment Utility
The group sort sorts based on a group summary.  If you haven't created any summaries for the group, the option is grayed out.  In this case I guess you'd want a maximum summary for that date field for the group.  Then the Group Sort option should be available.  Once you've set up the sort, you can remove the summary field from the group footer.

 James
0
 

Author Closing Comment

by:rporter45
Comment Utility
Works perfectly!

Thank you - cs
0
 
LVL 34

Expert Comment

by:James0628
Comment Utility
You're welcome.  Glad I could help.

 James
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now