Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

select most recent 4 occurances to report 1

Status
Not open for further replies.

gards1964

Technical User
May 10, 2002
2
US
I am using CR 11.0.
I have a report that takes multiple rosters and calculates a pass rate for each academic classes and the total. The report is currently based on a time selection (last year) of (between 2 dates). The powers that be now want to start ignoring date ranges and select the last 4 rosters per academy.

Group 1 Acad_Name
Group 2 Roster_id
Group 3 Student_name
details

Group2 includes the field Course_date so if I could get the most recent 4 rosters based on that field I'm probably done.

TIA
RG
 
Try inserting a maximum on {table.coursedate} at the RosterID Group level and then go to report->group sort->topN: 4->maximum of {table.coursedate}-> descending.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top