Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Cumulative balance group wise Post Reply Post New Topic
Author Message
Jamil
Newbie
Newbie
Avatar

Joined: 02 Apr 2015
Location: Pakistan
Online Status: Offline
Posts: 3
Quote Jamil Replybullet Topic: Cumulative balance group wise
    Posted: 13 Apr 2015 at 8:17am
HI

I create a crystal report of employee loan/advance select parameters are Employee name rage and also group it with employee name im using the following loop in formula to get cumulative balance from debit-credit its working fine when i range for single employee but if i range more than 1 employee it adds or subtract cumulative balance of next group. i want whatever the range i select it show individual cumulative balance of each group

Whileprintingrecords;
Shared Numbervar balance;
Shared Numbervar display;


balance:={Command.Debit}-{Command.Credit};
display:=display+balance;
display
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 13 Apr 2015 at 8:35am
you need another formula to set the balance value to 0 and place that in the group header
or
You can also create one formula field called RowBalance (or whatever) as
{Command.Debit}-{Command.Credit}
 
then use a crystal running total as
in Field explorer right click on Running Total and select new
name = GroupBalance (or whatever)
field to summarize = @RowBalance
type = sum
evaluate for = each row
reset = on change of group (select desired group here)


Edited by DBlank - 14 Apr 2015 at 2:20am
IP IP Logged
Jamil
Newbie
Newbie
Avatar

Joined: 02 Apr 2015
Location: Pakistan
Online Status: Offline
Posts: 3
Quote Jamil Replybullet Posted: 13 Apr 2015 at 7:08pm
thanx for reply
shall i create formula along with my formula as i showed in previous post and how can i create set balance to zero?

Regards
Jamil
IP IP Logged
Jamil
Newbie
Newbie
Avatar

Joined: 02 Apr 2015
Location: Pakistan
Online Status: Offline
Posts: 3
Quote Jamil Replybullet Posted: 13 Apr 2015 at 9:58pm
thanx DBlank your solution works now
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.