Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: help with formula for the graph Post Reply Post New Topic
Author Message
noms
Newbie
Newbie
Avatar

Joined: 23 Feb 2009
Location: South Africa
Online Status: Offline
Posts: 6
Quote noms Replybullet Topic: help with formula for the graph
     Posted: 07 Aug 2011 at 7:49am
please help, i'm creating a line graph and the formula i created should to sum on my data value for the graph is 12-(field)/12*100 but if i add and divide with the static number 12 it's not calculating correctly, i'm getting weird number.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 08 Aug 2011 at 4:26am
not exactly sure what you are trying to get at but maybe add in a parenth on the first part of your statement 
(12-(field))/12*100
 
 


Edited by DBlank - 08 Aug 2011 at 4:27am
IP IP Logged
noms
Newbie
Newbie
Avatar

Joined: 23 Feb 2009
Location: South Africa
Online Status: Offline
Posts: 6
Quote noms Replybullet Posted: 09 Aug 2011 at 1:02am
thanks for the response DBlank, but i tried that and it doesn't work. if i put the formula in the table of the report it works correctly the problem is in the graph it's not summing correctly.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 09 Aug 2011 at 4:11am
so you are creating a formula field with the above formula
placing it in the report and it calculates per row as desired
then you are creating a chart as a line graph and using teh fomrula field as the Show Value field and it is incorrect?
What are you using for the On Change of?
What is the summary tyope set to?
IP IP Logged
noms
Newbie
Newbie
Avatar

Joined: 23 Feb 2009
Location: South Africa
Online Status: Offline
Posts: 6
Quote noms Replybullet Posted: 09 Aug 2011 at 5:30am
the On Change of i'm using the date grouped by day, i even tried to group the formula by date but still not coming correct. the summary is set to Sum
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 09 Aug 2011 at 5:34am
so in the report design group on the same date field, set the group to day and do a SUM of the formula field at the day level. Do you get the correct values there? If not what were you expecting to get and what did you get (some sample data)?

Edited by DBlank - 09 Aug 2011 at 5:34am
IP IP Logged
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