Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: how summarize a formula field Post Reply Post New Topic
Author Message
madhugangaraju
Newbie
Newbie


Joined: 29 Mar 2010
Online Status: Offline
Posts: 13
Quote madhugangaraju Replybullet Topic: how summarize a formula field
     Posted: 05 Apr 2010 at 11:01pm
Hi All
Iam desinging a report in which iam facing a problem to summarize the formula field . This formula field contains sum calculation like
formula name is @sales

Sum ({@DTM200}, {@SaleMan})+Sum ({@DTM500}, {@SaleMan})+
Sum ({@TM500}, {@SaleMan})+Sum ({@TM1000}, {@SaleMan})+
Sum ({@HTM500}, {@SaleMan})+Sum ({@HTM1000}, {@SaleMan})+
Sum ({@WM500}, {@SaleMan})+Sum ({@WM1000}, {@SaleMan})+
Sum ({@CURD}, {@SaleMan})+Sum ({@Buttermilk}, {@SaleMan})+
Sum ({@BULKWM}, {@SaleMan})+Sum ({@BULKTM}, {@SaleMan})

the fields are summary fields and iam calculating all these fields to get the final result . Upto this it is working fine but finally i want to calculate the grand total of this formula '@sales' how should do this
Thanks in advance
madhu
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 06 Apr 2010 at 3:25am
create a running total (DBlank will explain...I'm sure) or create another variable and let it hold the accumulate total of your sums.  if there are no subreports, Global numbervar will do.
 
don't forget to reset the variable to 0 when appropriate.
 
HTH
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