Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: CR X - chart and formula Post Reply Post New Topic
Author Message
axel-erator
Newbie
Newbie
Avatar

Joined: 25 Jun 2007
Online Status: Offline
Posts: 1
Quote axel-erator Replybullet Topic: CR X - chart and formula
    Posted: 25 Jun 2007 at 8:43am
hi,

It's my first time in your forum.

I have problem with Charts in CR X. I use formula and this forumla use formula too with Shared variable. I have found results for the formula but in charts the result is always equal 0. Cry

So the 3 formula :

first formula :

Shared numbervar var1:=0;

second formula put in details :

Shared numbervar var1;
var1:=var1+sum({table1.col1},{group2})+max({table2.col2},{group2});

Formula put in footer group and in chart

Shared numbervar var1;
var1


Why the formula in chart is always equal to 0 and the formula in footer groop is superior to 0?

thanks for help...
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 25 Jun 2007 at 10:51am
This is due to the formula being calculated in the second pass and the chart is also calculated in the second pass. So when the chart gets the shared variable value then its zero b/c it hasn't been calculated yet. Search on 'chart' for a post in last week's questions. I posted a bunch of chart/formula related links to give you more info.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
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.