Using Crystal 8.5
There's 6 columns in a table: year, period,
account,balance_debit, balance_credit,
balance_amount(i.e. balance_debit - balance_credit).
The account balances are by account, year and period.
year period account balance_debit balance_credit balance_amount
2006 0 1000 $10.00 ($5.00) $5.00
2006 1 1000 $100.00 ($50.00) $50.00
2006 2 1000 $200.00 ($500.00) ($300.00)
2006 0 1006 $20.00 ($20.00) $0.00
2006 1 1006 $18.00 ($8.00) $10.00
2006 2 1006 $90.00 $0.00 $90.00
I want to display the 'Beginning balance' of
each account from the above information
based on user selection criteria.
eg., Suppose user selects using parameter field,
year 2006 and period 1
(i.e. start of Range is 1 and end of range is 1),
for account 1000, report should display
beginning balance of $5.00 and the corresponding debit,
credit balance
for period 1 and ending balance amount of $55.00 as below:
year period account Beginning_Balance balance_debit balance_credit Ending_balance_amount
2006 1 1000 $5.00 $100.00 ($50.00) $55.00
Beginning_Balance + balance_debit + balance_credit = Ending_balance_amount
Another example, suppose user selects year 2006
and period 2 (i.e. start of range is 2 and
end of range is 2), for account 1000,
report shouls display as below:
year period account Beginning_Balance balance_debit balance_credit Ending_balance_amount
2006 2 1000 $55.00 $200.00 (500) (245.00)
I created two parameter fields: FiscalYear & FiscalPeriod.
FiscalPeriod accepts range values (0, 1, 2...13).
I grouped by account and got sum of debit, credit,
and balance columns to get the
totals for each field. I am having trouble
calculating the Beginning Balance.
I would appreciate any suggestions on how to solve this problem. I tried several ways w/o success. Thanks.
There's 6 columns in a table: year, period,
account,balance_debit, balance_credit,
balance_amount(i.e. balance_debit - balance_credit).
The account balances are by account, year and period.
year period account balance_debit balance_credit balance_amount
2006 0 1000 $10.00 ($5.00) $5.00
2006 1 1000 $100.00 ($50.00) $50.00
2006 2 1000 $200.00 ($500.00) ($300.00)
2006 0 1006 $20.00 ($20.00) $0.00
2006 1 1006 $18.00 ($8.00) $10.00
2006 2 1006 $90.00 $0.00 $90.00
I want to display the 'Beginning balance' of
each account from the above information
based on user selection criteria.
eg., Suppose user selects using parameter field,
year 2006 and period 1
(i.e. start of Range is 1 and end of range is 1),
for account 1000, report should display
beginning balance of $5.00 and the corresponding debit,
credit balance
for period 1 and ending balance amount of $55.00 as below:
year period account Beginning_Balance balance_debit balance_credit Ending_balance_amount
2006 1 1000 $5.00 $100.00 ($50.00) $55.00
Beginning_Balance + balance_debit + balance_credit = Ending_balance_amount
Another example, suppose user selects year 2006
and period 2 (i.e. start of range is 2 and
end of range is 2), for account 1000,
report shouls display as below:
year period account Beginning_Balance balance_debit balance_credit Ending_balance_amount
2006 2 1000 $55.00 $200.00 (500) (245.00)
I created two parameter fields: FiscalYear & FiscalPeriod.
FiscalPeriod accepts range values (0, 1, 2...13).
I grouped by account and got sum of debit, credit,
and balance columns to get the
totals for each field. I am having trouble
calculating the Beginning Balance.
I would appreciate any suggestions on how to solve this problem. I tried several ways w/o success. Thanks.