Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Summarize Formulas Post Reply Post New Topic
Author Message
noobi
Newbie
Newbie


Joined: 29 Mar 2011
Location: United States
Online Status: Offline
Posts: 2
Quote noobi Replybullet Topic: Summarize Formulas
     Posted: 29 Mar 2011 at 1:01pm
The question is the title...
I would like to add the summarized field (which is a formula) although i cannot drag the summary to the header because it turns to 0. And there is no option to summarizes formulas.

Can anyone help? Thank You
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 30 Mar 2011 at 3:38am

you can't put a custom formula in the header of a group, CR has not 'read'/'calculated' the value yet. The footer is a better place.

If it is absolutely needed in the header, you can create a subreport to calculate the value and display that...though the usual caveats apply, it will read the data (in it's entirety) twice or more, it will make and drop connections to the database as many times as the subreport is called (so if the report has 100 records, the report will pull data from the database 101 times) which will affect performance.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 30 Mar 2011 at 3:49am
as lockwelle notes, custom formula summaries cannot go in headers. Only summaries that are created via the 'insert summary function' can be placed in headers (or written to mimic the process of this). If your formula can be reworked to use this type of summry then you can avoid the subreport, otherwise follow lockwelle's process.
IP IP Logged
noobi
Newbie
Newbie


Joined: 29 Mar 2011
Location: United States
Online Status: Offline
Posts: 2
Quote noobi Replybullet Posted: 30 Mar 2011 at 2:15pm
Thank you very much
You are both gentlemen and scholars.
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