Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Why is the suppress record still ... Post Reply Post New Topic
Author Message
Douang
Newbie
Newbie


Joined: 15 Nov 2011
Location: United States
Online Status: Offline
Posts: 12
Quote Douang Replybullet Topic: Why is the suppress record still ...
    Posted: 25 Jul 2012 at 7:48am
I have a very simple CR report.
 
On Detail Line, I showed CustomerID, Rate, etc...  
 
I suppress record from the Detail Line if CustomerID = '100222'.
 
At the end of the report, I have SUM of Rate but the suppressed record is included in the SUM of Rate.
 
Example record:
 
CustomerID       Rate         
333222              5.00
100222             25.00
555551             35.00
 
My report shows:
 
CustomerID       Rate         
333222              5.00
555551             35.00
 
But at the end of the report, the total shows 65.00 instead of 40.00.  CustomerID 100222 is excluded from the detail line but it added to SUM(Rate).
 
WHY?
IP IP Logged
Sastry
Moderator
Moderator
Avatar

Joined: 16 Jul 2012
Online Status: Offline
Posts: 537
Quote Sastry Replybullet Posted: 25 Jul 2012 at 8:02am
Hi
 
Create a manual running totals to achive this :
 
Formula1   // place this on your detail line
Whileprintingrecords;
numbervar x;
if CustomerID <> '100222' then
x:=x+rate;
 
 Formula2
Whileprintingrecords;
Numbervar x;
 
Place this formula in your footer where you would like to show the totals.
Thanks,
Sastry
IP IP Logged
Douang
Newbie
Newbie


Joined: 15 Nov 2011
Location: United States
Online Status: Offline
Posts: 12
Quote Douang Replybullet Posted: 25 Jul 2012 at 8:23am
Sastry,
 
Thank you.
 
Your suggestion did the trick.  It works!!
 
Thank you!!!!


Edited by Douang - 25 Jul 2012 at 8:23am
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.000 seconds.