Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Need help with summarizing totals Post Reply Post New Topic
Author Message
j9hotz
Newbie
Newbie
Avatar

Joined: 18 Sep 2009
Location: United States
Online Status: Offline
Posts: 5
Quote j9hotz Replybullet Topic: Need help with summarizing totals
    Posted: 21 Sep 2009 at 8:23am
Here is the issue:  Multiple line items on an invoice and multiple lines of recognition against them. 
The data looks like this:
   Sku       Qty     Rate      Total             Recognition Total
1. UNCR      100     200       20,000                     0.00
2. UNCR1    200     190       38,000                 4000.00
2. UNCR1    200     190       38,000                 5000.00
2. UNCR1    200     190       38,000                 1000.00
 
The first 4 items (Sku, Qty, Rate, Total) are in the DR Table the Recognition Total is in the Recognition Table.
 
I am trying to get an invoice total for the skus which should be 58,000.  But with a right join I get 38,000 and a left join i get 20,000.  If I do a sum of the total field first through a formula I get 134,000.  Basically it is adding the 2nd line 3 times because it has multiple lines of recognition against it. 
 
How can I get the report to only give me the total value of the first two lines without including all of the other lines?  Someone was thinking a "Distinct" formula but I am not familiar with this in Crystal.
 
Any suggestions?  Need more information?  Please let me know...  Any help is appreciated!!  Thanks!!!
j9hotz
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 21 Sep 2009 at 9:14am
YOu can use a Running Total
Field to SUmmarize=Total
Type = SUM
Evaulate set to on change of field = SKU
Reset as Never (unless you have grouping or something else that you want it to reset on)
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.