Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Formula not totalling properly Post Reply Post New Topic
Author Message
Acrylon
Newbie
Newbie


Joined: 15 Jan 2009
Location: Canada
Online Status: Offline
Posts: 5
Quote Acrylon Replybullet Topic: Formula not totalling properly
    Posted: 22 Jan 2009 at 12:14pm
Hi All,
 
I have a report with 3 groups and a details line.
 
The detail line is simply customer orders, quantities, and due dates etc.
 
The first group sorts these orders by customer.  There is a formula I've built in this group that tells us how many days until the order is due, named "Days Due":
{OEW65 Orders and Invoices Headers.Expected ship date}-today
This formula works fine.
 
The next group totals information about about the customer, and I have 10 formulas which total dollar amounts of all orders due in 1-7 days, 8-14, 15-21, 21-28, and over 28, and the same for past due 1-7 days etc.
 
An example of one of the formulas:
if({@Days Due}>0 and {@Days Due}<8) then
  Sum (
{@Canadian $ Value2}, {@shipto-bill to key})
else
   0
 
This formula is for some reason totaling all orders for the customer based on whatever the last order in the list has for @Days Due.  Here is a screenshot:
 
 
This one should have totals for 7-14, 22-28, and over 28.
 
Anyone know what's going on here?
 
Thanks!
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 22 Jan 2009 at 1:08pm
Can't see your screen shot but an easy solution is to change these to running totals and and conditionally include them using your formula and reset it on the customer group then palce it on group footer1
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.016 seconds.