manrique83
Programmer
I couldn’t find an answer to my question in any of the posts. So I ask for your help.
Crystal 9
Three tables:
Account_Balance
Account_Transaction
Account_Profile
All joined on account. I have 1 group (account) on my report and I display the following in the Group Sections., but I only display the balance if the count of withdrawals is greater than (>) 0.
field formula runningTotal
Account Balance Withdrawals
12345 55.00 2
44444 0
45638 100.00 9
Formula for Balance:
If {#Withdrawal} > 0 Then {account_balance}
RunningTotal – Withdrawals
Summary: Count of Transaction Account (# of times account had transaction)
Evaluate Formula: {tran_code} = “W”
Reset: On change of Group 1 (account)
Here is THE PROBLEM.
I’m unable to run a running total to sum the Balance because the Balance formula won’t show up as a field I can do a summary on.
Also, I tried a running total for account_balance and evaluate: {tran_code} = “W”. The problem with this is that it reads the first transaction record for that account, which gives me inaccurate totals. i.e. Using sample data above, say transaction records are:
tran_acct tran_code tran_amount
123456 W 20.00
123456 W 40.00
45638 D 45.00
45638 W 40.00
It won’t sum the balance for account 45638 because the first record is a “D” instead of “W”. Please help, I tried every possible solution.
Crystal 9
Three tables:
Account_Balance
Account_Transaction
Account_Profile
All joined on account. I have 1 group (account) on my report and I display the following in the Group Sections., but I only display the balance if the count of withdrawals is greater than (>) 0.
field formula runningTotal
Account Balance Withdrawals
12345 55.00 2
44444 0
45638 100.00 9
Formula for Balance:
If {#Withdrawal} > 0 Then {account_balance}
RunningTotal – Withdrawals
Summary: Count of Transaction Account (# of times account had transaction)
Evaluate Formula: {tran_code} = “W”
Reset: On change of Group 1 (account)
Here is THE PROBLEM.
I’m unable to run a running total to sum the Balance because the Balance formula won’t show up as a field I can do a summary on.
Also, I tried a running total for account_balance and evaluate: {tran_code} = “W”. The problem with this is that it reads the first transaction record for that account, which gives me inaccurate totals. i.e. Using sample data above, say transaction records are:
tran_acct tran_code tran_amount
123456 W 20.00
123456 W 40.00
45638 D 45.00
45638 W 40.00
It won’t sum the balance for account 45638 because the first record is a “D” instead of “W”. Please help, I tried every possible solution.