Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Subtract a formula field from a summary field? Post Reply Post New Topic
Author Message
Rand
Newbie
Newbie


Joined: 27 Oct 2011
Online Status: Offline
Posts: 5
Quote Rand Replybullet Topic: Subtract a formula field from a summary field?
    Posted: 27 Oct 2011 at 9:03am
I have 3 different types of columns in my group footer

a. A standard summary based on standard DB fields
b. A formula which calculated & compiled results from a sub report
c. A totals field which needs to be (a-b)

I don't know if it's necessary to get into further details, but when I first built this report the key results were in the Details field and it worked just fine, but the data has expanded causing duplicate detail results of the grouped item so I had to suppress the details and move the fields into the group footer.  I have a and b displaying the correct results, but is there a quick and easy way to do c?

I suppose I could rework all the 'a' columns (there's more than one) with shared variables and manual sum formula's, but I'm thinking there's gotta be a much easier way of doing that.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 27 Oct 2011 at 9:11am
one would think that you could something like:
shared numbervar something;
 
sum({table.field}, {group}) - something
 
it should work.  I don't know if I have done this or not
IP IP Logged
Rand
Newbie
Newbie


Joined: 27 Oct 2011
Online Status: Offline
Posts: 5
Quote Rand Replybullet Posted: 27 Oct 2011 at 9:39am
Yes that's exactly what I needed, I knew I was overlooking something.  Thanks.  

Edited by Rand - 27 Oct 2011 at 9:40am
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.033 seconds.