kwalters135
Programmer
I am using CR XI full version with a dbase database. I am trying to produce subtotal fields that are based on a one (single account record) to many (8 different balances for the different scenarios) relationship.
GD is the master table, RBD is the detail table.
GD.ACCT links to RBD.ACCT. Each account has 8 records in RBD that are determined by RBD.SCENARIO (numeric field, values 0 to 7).
By grouping on RBD.SCENARIO, I have one detail section in crystal that contains the fields that I need from RBD. For example RBD.NII_M1 (net interest income, month 1). This successfully produces 8 detail sections for each account.
However, the only way I have been able to get 8 different subtotals is to create 8 different group footer sections with 8 different running total fields that use a formula to determine when to evaluate a record based on the RBD.SCENARIO field.
Is there any way I can set up a single running total field in the design view that will produce the correct subtotal for each scenario?
A few more details:
GD.ACCT --(one to many)--> RBD.ACCT
Group #1: RBD.ACCT
Group #2: RBD.SCENARIO
DETAIL: many fields from RBD
GD is the master table, RBD is the detail table.
GD.ACCT links to RBD.ACCT. Each account has 8 records in RBD that are determined by RBD.SCENARIO (numeric field, values 0 to 7).
By grouping on RBD.SCENARIO, I have one detail section in crystal that contains the fields that I need from RBD. For example RBD.NII_M1 (net interest income, month 1). This successfully produces 8 detail sections for each account.
However, the only way I have been able to get 8 different subtotals is to create 8 different group footer sections with 8 different running total fields that use a formula to determine when to evaluate a record based on the RBD.SCENARIO field.
Is there any way I can set up a single running total field in the design view that will produce the correct subtotal for each scenario?
A few more details:
GD.ACCT --(one to many)--> RBD.ACCT
Group #1: RBD.ACCT
Group #2: RBD.SCENARIO
DETAIL: many fields from RBD