Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Restrict Results Within Groups Post Reply Post New Topic
Author Message
joecarde
Newbie
Newbie


Joined: 15 Jul 2008
Location: United States
Online Status: Offline
Posts: 6
Quote joecarde Replybullet Topic: Restrict Results Within Groups
     Posted: 15 Jul 2008 at 12:45pm
Hello --


I've searched for this, but I think I'm not using the right terms for the concept.

I am doing a Bottom 3 report, but this report is on a per group basis. If I use the Group Sorter I only get the bottom 3 groups, but what I need is the bottom 3 records for each group.

I've tried using the Section Expert for suppression in Details but that only gives me the first 3 records, same for Group level.

Any ideas?


IP IP Logged
venkatesha
Newbie
Newbie


Joined: 29 Jun 2008
Online Status: Offline
Posts: 35
Quote venkatesha Replybullet Posted: 16 Jul 2008 at 3:53am
Use the Record Sort Expert and sort the field that is placed in detail section accordingly, which I think will solve your problem

Cheers

Venkatesh
IP IP Logged
joecarde
Newbie
Newbie


Joined: 15 Jul 2008
Location: United States
Online Status: Offline
Posts: 6
Quote joecarde Replybullet Posted: 16 Jul 2008 at 7:08am
That still shows me every record within any group. I want to restrict the details to the worst 3 (in terms of time), and suppress the.

It seems I can't suppress the number of records by group, at least not using the Group Sort expert.

Is there an option I'm missing?
IP IP Logged
joecarde
Newbie
Newbie


Joined: 15 Jul 2008
Location: United States
Online Status: Offline
Posts: 6
Quote joecarde Replybullet Posted: 16 Jul 2008 at 7:37am
OK, figured it out, I was way over-thinking this.

I created a Running Total for each detail record, set to reset upon change of group.

Then, with the Section Expert I suppressed using the forumla:

#RTotal0 > 3

Thus, only 3 records per group are printed.


IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum