Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Data Connectivity
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:40am
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
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 31 Jul 2012 at 6:58am
the Aggregate functions don't care about suppression...if it is in the dataset it gets added in.  You can try removing it from the record set or you can create your sum using either running totals or shared variables.
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.047 seconds.