Rudy here,
I have a table set that has multiple childl records for each master account. I want to sum the last "ending balance" within the child table so I grouped the table by account description in my report and included a calculated field in the group footer that states
"grp_end_bal = cc_Detail->Chld_End_Bal". This in fact, captures the last ending balance regardless of how many details exist for the account.
The problem I'm having is that I cannot figure out how to sum grp_end_bal with the last entries of each account. When I try a "grp_tot_bal = total(calc->Grp_End_Bal), it totals "all" transactions, not just the last.
How can I accomplish this? Thanks
See below simple sample report showing what's happenong.
Bank of America
- Ending Balance 2623.72
--- Account $$ Owed: 2623.72
BJ's
- Ending Balance 58.83
--- Account $$$ Owed: 58.83
Chase
- Ending Balance 875.50
- Ending Balance 725.50
--- Account $$$ Owed: 725.50
Discover
- Ending Balance 255.49
- Ending Balance 199.49
--- Account $$$ Owed: 199.49
Total Debt: 4738.53 <-- Wrong , my calculation is summing all details shown above to come up with the Total Debt.
If you sum the Account $$$ Owed, it adds up to the below number which is right.
Should be:
Total Debt: 3607.54 <-- Right
I,m sure there is a simple solution out there. I've spent a great deal of time trying to figure out the problem however, I need help.
Thanks again,
Rudy
I have a table set that has multiple childl records for each master account. I want to sum the last "ending balance" within the child table so I grouped the table by account description in my report and included a calculated field in the group footer that states
"grp_end_bal = cc_Detail->Chld_End_Bal". This in fact, captures the last ending balance regardless of how many details exist for the account.
The problem I'm having is that I cannot figure out how to sum grp_end_bal with the last entries of each account. When I try a "grp_tot_bal = total(calc->Grp_End_Bal), it totals "all" transactions, not just the last.
How can I accomplish this? Thanks
See below simple sample report showing what's happenong.
Bank of America
- Ending Balance 2623.72
--- Account $$ Owed: 2623.72
BJ's
- Ending Balance 58.83
--- Account $$$ Owed: 58.83
Chase
- Ending Balance 875.50
- Ending Balance 725.50
--- Account $$$ Owed: 725.50
Discover
- Ending Balance 255.49
- Ending Balance 199.49
--- Account $$$ Owed: 199.49
Total Debt: 4738.53 <-- Wrong , my calculation is summing all details shown above to come up with the Total Debt.
If you sum the Account $$$ Owed, it adds up to the below number which is right.
Should be:
Total Debt: 3607.54 <-- Right
I,m sure there is a simple solution out there. I've spent a great deal of time trying to figure out the problem however, I need help.
Thanks again,
Rudy
Comment