Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: How do I - Only return where detail records > 1 Post Reply Post New Topic
Author Message
graab
Newbie
Newbie
Avatar

Joined: 17 Jun 2009
Location: United States
Online Status: Offline
Posts: 2
Quote graab Replybullet Topic: How do I - Only return where detail records > 1
    Posted: 17 Jun 2009 at 9:25am
I have a spiffy little report that is grouped by Service Call Number (from table service_call).  In the detail section I return rows from the service_call_charges table. 
 
How can I get CR to only display Service Calls where the number of rows in the detail section is >1? 
 
I can get it to do a conditional supress of the details if I throw in a running total that does a count on the service_call_charge_id, but it still requires you to thread through pages and pages of blank results b/c you can't supress the group header based on count.
 
I'm thinking this is something obvious and I'm just making it too darned complicated.Dead
 
Any assistance would be greatly appreciated.
 
Thanks,
 
GRaab
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 17 Jun 2009 at 10:06am
If you want it to actually exclude the data create a Summary Field as a COUNT of the table.service_call_charge_id field grouped at the Service_call field level. (Do not use a Running Total but the Summary function).
This will have been placed on the group footer.
click on it to activate it. Now click on the Select Expert and make this field >1.
There are 2 parts in the select expert.
When you open it and you click on the Show Formula you will see a toggle option for Record Selection and Group Selection.
The seelction formula you just created should now appear under Group Selection as something like...
COUNT({table.service_call_charge_id},{table.service_call})>1
 


Edited by DBlank - 17 Jun 2009 at 10:07am
IP IP Logged
graab
Newbie
Newbie
Avatar

Joined: 17 Jun 2009
Location: United States
Online Status: Offline
Posts: 2
Quote graab Replybullet Posted: 17 Jun 2009 at 11:04am
Exactly what I was looking for.
 
Thank you!
 
ClapClapClap
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.031 seconds.