Using Crystal 8.5
I'm attempting to get rid of some running totals (per a previous thread). I have two tables, Revenue and Budget. The report is to show total Revenue $, total Budget $, and variance for each account/sub-account combination. The problem is that there are many revenue records per account but only one budget record. The budget field is being repeated for each revenue record so my total budget for each account is way too high.
Revenue Table:
Acct Sub Rev
123 500 1,000
123 000 3,000
123 000 2,000
123 000 4,000
123 500 6,000
456 000 1,000
456 000 2,000
456 500 4,000
Budget Table:
Acct Sub Budget
123 000 8,000
123 500 5,000
456 000 6,000
456 500 4,000
The report should show:
Acct Sub Rev Budget Var
123 000 9,000 8,000 1,000
123 500 7,000 5,000 2,000
GF for 123 16,000 13,000 3,000
456 000 3,000 6,000 -3,000
456 500 4,000 4,000 0
GF for 456 7,000 10,000 -3,000
The report is actually showing a budget of 24,000 instead of 8,000 for Acct 123 Sub 000 because it has three records in the Revenue table. All other budgets are similarly duplicated.
How do I stop Crystal from retrieving a Budget from the budget table for each Revenue record? Or else how to I stop it from adding the budget more than once to the GF totals?
Thanks in advance for any help.
I'm attempting to get rid of some running totals (per a previous thread). I have two tables, Revenue and Budget. The report is to show total Revenue $, total Budget $, and variance for each account/sub-account combination. The problem is that there are many revenue records per account but only one budget record. The budget field is being repeated for each revenue record so my total budget for each account is way too high.
Revenue Table:
Acct Sub Rev
123 500 1,000
123 000 3,000
123 000 2,000
123 000 4,000
123 500 6,000
456 000 1,000
456 000 2,000
456 500 4,000
Budget Table:
Acct Sub Budget
123 000 8,000
123 500 5,000
456 000 6,000
456 500 4,000
The report should show:
Acct Sub Rev Budget Var
123 000 9,000 8,000 1,000
123 500 7,000 5,000 2,000
GF for 123 16,000 13,000 3,000
456 000 3,000 6,000 -3,000
456 500 4,000 4,000 0
GF for 456 7,000 10,000 -3,000
The report is actually showing a budget of 24,000 instead of 8,000 for Acct 123 Sub 000 because it has three records in the Revenue table. All other budgets are similarly duplicated.
How do I stop Crystal from retrieving a Budget from the budget table for each Revenue record? Or else how to I stop it from adding the budget more than once to the GF totals?
Thanks in advance for any help.