Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: cannot do math on summed field? Post Reply Post New Topic
Author Message
celticpiping
Newbie
Newbie
Avatar

Joined: 25 Oct 2007
Online Status: Offline
Posts: 24
Quote celticpiping Replybullet Topic: cannot do math on summed field?
    Posted: 11 Jul 2013 at 5:32am
this is killing me:
 
goal: to perform math on a summary field(in a Group footer)
problem: I cannot make crystal do math on a field that's "not recurring"
 
see pic:
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 11 Jul 2013 at 7:45am
@invoice amount must be using @chargeback amount
what are these formulas?
IP IP Logged
celticpiping
Newbie
Newbie
Avatar

Joined: 25 Oct 2007
Online Status: Offline
Posts: 24
Quote celticpiping Replybullet Posted: 11 Jul 2013 at 9:11am
"invoice amount' is simply multiplying two Darabase fields, as in:
 
{InvoiceLines.Quantity} * {InvoiceLines.UnitPrice}
 
so we have in the group footer, "sum of @invoiceamount(number)" field
 
 
I was hoping I could simply use that summary field, in my chargeback amount formula
 
;(
Rich
 
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 11 Jul 2013 at 10:24am
you cant really do conditional summary the wa you have it
if datediff('m',startdate,caceldate) in 3 to 7...
 
you can instead apply the condition to the formula and sum that formula
 
if datediff('m',{servicessetup.startdate},{{servicessetup.caceldate}) in 3 to 7 then (({InvoiceLines.Quantity} * {InvoiceLines.UnitPrice}) *(.75)) else 0
 
now sum this at the client footer
IP IP Logged
celticpiping
Newbie
Newbie
Avatar

Joined: 25 Oct 2007
Online Status: Offline
Posts: 24
Quote celticpiping Replybullet Posted: 12 Jul 2013 at 9:54am
well done sir.
 
thanks!
R
 
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.