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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Top N

Status
Not open for further replies.

unknownly

Programmer
Jul 7, 2003
181
US
Hi All,

Can we do Top N and Bottom N in the same report. Using CR 10 and Oracle 9i.

Currently, Iam doing this as 2 subreports and a main report

Main report show Top N
Subrpt 1 shows Bottom N
Subrpt3 shows Full report

which uses the same SQL 3 times. Is there any other way I can do this

TIA,
Sweetie
 
How do we use the suppress logic? Top & BOttom N is done on the same group

TIA,
Sweeite
 
Yes, I know what is section suppress mean. But is Group sort for Top 10 or Bottom 10 can be done by section or for a report?

TIA,
Sweetie
 
The group sort is done using ALL.
You then suppress the groups in the middle using a conditional expression of your choice. For example:
Code:
GroupNumber > 5 AND DistinctCount({Customer.Customer Name})- GroupNumber > 4
will show top and bottom 5.

- Ido

view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Cool, It worked. Thanks a ton..

This is where I was struck with the report

Sorted by ID( group1) and sorted Amt by Desc order
then in group section 1A suppressing if


@Group1a:
Groupnumber in [ 1 to 10] gives in TOP 10

Group section 1B suppressing

@group1b:
if lastrecord then
???? How do I say to print last 10 records for Bottom 10??


Thanks again,
Sweetie

 
Facing another problem...thought I could trackle it so did not mention it before.

I did this on a new page. I will need to print the TOp 10 in one page and the Bottom 10 in a New page

TIA,
Sweetie
 
How can I get the whole full report printed starting on a new page after the TOp 10 and Bottom 10 report has been printed? Can this be done?


TIA,
Sweetie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top