Hello,
Our database has transactions grouped into several types, let's just call them Group A, Group B, etc. I'm making a report where I list the sum of all transactions for all groups, ex:
Group A $500000 5%
Group B $300000 3%
etc...
Total $10000000 100%
Where the dollar amount is the sum of all transactions of that type and the % is the percentage that each group contributes to the total revenue. So I have a group in the report and I'm outputting the group data in the group footer and then the total data in the report footer.
Recently I've had to change the way I calculate revenue. Based on certain logic, I have to use one field in the database sometimes and other times use another field. To implement this I'm evaluating based on a formula in my running total fields, something like:
({Claim.type} = 1)
for one type and then
not({claim.type} = 1) for the other type.
Then I have a formula to calculate everything based on the two sums.
Now everything works fine EXCEPT for calculating the percentage of total revenue that each group represents. I can no longer do Sum{RunningTotalField} to get the total revenue from all transactions, so I don't know what to divide by to get my %age. Right now I have hard coded the divisor but obviously there should be a better way.
I hope I didn't confuse everyone too much. If you have any suggestions please let me know. Thanks a lot.
Our database has transactions grouped into several types, let's just call them Group A, Group B, etc. I'm making a report where I list the sum of all transactions for all groups, ex:
Group A $500000 5%
Group B $300000 3%
etc...
Total $10000000 100%
Where the dollar amount is the sum of all transactions of that type and the % is the percentage that each group contributes to the total revenue. So I have a group in the report and I'm outputting the group data in the group footer and then the total data in the report footer.
Recently I've had to change the way I calculate revenue. Based on certain logic, I have to use one field in the database sometimes and other times use another field. To implement this I'm evaluating based on a formula in my running total fields, something like:
({Claim.type} = 1)
for one type and then
not({claim.type} = 1) for the other type.
Then I have a formula to calculate everything based on the two sums.
Now everything works fine EXCEPT for calculating the percentage of total revenue that each group represents. I can no longer do Sum{RunningTotalField} to get the total revenue from all transactions, so I don't know what to divide by to get my %age. Right now I have hard coded the divisor but obviously there should be a better way.
I hope I didn't confuse everyone too much. If you have any suggestions please let me know. Thanks a lot.