Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Running Total Field Question Post Reply Post New Topic
Author Message
frosty16
Newbie
Newbie


Joined: 24 Jan 2009
Online Status: Offline
Posts: 5
Quote frosty16 Replybullet Topic: Running Total Field Question
    Posted: 04 Mar 2009 at 12:29pm
Heya Guys

I have created a cystal report that has a running total field on a cost entry on the report. The data comes from a database where the field type is set to numeric with two decimal places. However when i run the report it doesnt add up the total at all it just brings up 13 (unknown where it gets this from as the value is in the thousands.

The running total field is set as follows:

Summary type = Count
Summary Field = TotalCost
Evaluate = For Each Record
Reset = never

What am i doing wrong?

Thank you in advance

Frosty
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 09 Mar 2009 at 6:50am
which value?  the total of the TotalCost or the number of records?  I don't use running totals, but it appears that you want the count of records (that is what you told the running total to do).  From the complaint, it sounds like you want the Summary Type to be Sum, but I am not sure.
 
Hope this helps 
IP IP Logged
frosty16
Newbie
Newbie


Joined: 24 Jan 2009
Online Status: Offline
Posts: 5
Quote frosty16 Replybullet Posted: 09 Mar 2009 at 8:21am
Yea I want to work out the total of all the fields called totalcost. I thought that it would be sum however ther isn't a sum summary option. Is this because I am using the .net version?
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 09 Mar 2009 at 12:27pm
What data type is TotalCost?  It needs to be a numeric field in order for Sum to be an available option.  Also, you need to select the field before you select the summary type, otherwise you may not see all of the options.
 
-Dell
IP IP Logged
frosty16
Newbie
Newbie


Joined: 24 Jan 2009
Online Status: Offline
Posts: 5
Quote frosty16 Replybullet Posted: 12 Mar 2009 at 12:42pm
OK yea i have set the field as a numeric field.  however it is still not coming up.  ho to i select the field before hand?
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 12 Mar 2009 at 1:34pm

Is TotalCost a database field or a formula?

-Dell

IP IP Logged
frosty16
Newbie
Newbie


Joined: 24 Jan 2009
Online Status: Offline
Posts: 5
Quote frosty16 Replybullet Posted: 15 Mar 2009 at 7:18pm
Its a database field
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.