Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Inital Balance

Hi People:

I need calculate initial balance for accounts, with this structure.

The Data is:
YearMonthDateAccountDebitCredit
2010401/04/2010E100500
2010409/04/2010E100300
2010508/05/2010E100400
2010516/05/2010E101120
2010711/07/2010E20080
2010719/07/2010E10030
2010825/08/2010E200140
And need show ..
YearMonthAccountbeginning balanceDebitCreditbook balance
20104E1000500300200
20105E1002005200720
20107E100720030690
TotalE10001020330690
20105E10101200120
TotalE10101200120
20107E200080080
20108E200801400220
TotalE20002200220
Grand Total01360330-1690


Is possible? any idea?

Thanks! regards

César Estrada

1 Solution

Accepted Solutions
vgutkovsky
Master II
Master II

Cesar,

See attached solution.

Regards,

View solution in original post

4 Replies
Not applicable
Author

I think you should be able to use Inter-record functions to do it. Once you take the date field out, the Year and Month will be grouped, so your Debit and Credit expressions should work as is.

For Beginning Balance, it would be something like:

Above(Debit) - Above(Credit) + Above(BeginningBalance)


You may also be able to use Accumulation and have the Beginning Balance field be:

Above(Debit) - Above(Credit)


EDIT: Actually, the first expression should probably be:

Above(Debit) - Above(Credit) +
If(Above(BeginningBalance) > 0, Above(BeginningBalance), 0)
Then set your Null Symbol to 0.

vgutkovsky
Master II
Master II

Cesar,

See attached solution.

Regards,

Not applicable
Author

Now try with this tips, Thanks!!

Not applicable
Author

Thanks!! work perfect!!