Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Calculating Running Total Post Reply Post New Topic
Author Message
Shivacon
Newbie
Newbie
Avatar

Joined: 17 Sep 2009
Location: India
Online Status: Offline
Posts: 26
Quote Shivacon Replybullet Topic: Calculating Running Total
    Posted: 23 Oct 2009 at 12:20am

Hi All,

I have an banking report for vault drawer analysis report. In this I have two grouping first one is currency and second one is drawer. That we have more than one darwer for tha same currency.

I have the following formula for doing summarize for the drawer group:

Formula-1(denominationtotal)

{RPT_VAULT_DRAW_CRNCY_DENOM_SP.DENOM_AMT}*{RPT_VAULT_DRAW_CRNCY_DENOM_SP.DENOM_COUNT};

Formula-2(difference)

shared numberVar result;
result:=sum({@denominationtotal},{RPT_VAULT_DRAW_CRNCY_DENOM_SP.DRAWER_NO})-{RPT_VAULT_DRAW_CRNCY_DENOM_SP.DRAWER_CRNCY_BAL};
result;

the above calculated result is for total for particular drawer. So i want to sumup the "result" variable in currency level. That is sumup for all the drawer which are all having the same currency.

Please give me some suggestion

Thanks,
Shiva
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 23 Oct 2009 at 6:20am
what comes to mind is to build a shared array variable (possibly 2) that would track the type of currency in one array and the amount in another.
then as you calculate the results, increment the arrays as needed.
 
another way to accomplish the same thing without arrays is to build a delimited string of currencies and totals
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.031 seconds.