Solved

Maximum (up to 2) Records

Posted on 2012-03-16
7
231 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
ID: 37731150
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
ID: 37731686
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
ID: 37731736
Look at

REPORT --> GROUP SORT EXPERT

mlmcc
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:rporter45
ID: 37735845
It's dimmed out - no ability to sort.

cs
0
 
LVL 34

Assisted Solution

by:James0628
James0628 earned 200 total points
ID: 37740763
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
ID: 37766863
Works perfectly!

Thank you - cs
0
 
LVL 34

Expert Comment

by:James0628
ID: 37769816
You're welcome.  Glad I could help.

 James
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
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 …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

777 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