Good Afternoon,
I am trying to sum a calculated control in a report footer but not having any luck.
This is a quarterly report that calculates the insurance payable per month within the quarter based on a set percentage per invoice. Note, the insurance payable is not calculated per invoice but per total invoices per month.
E.g.
Up to Insurable Amount is calculated in the associated query. The total insurable is summed in the report in a text box named txtTTLInsurable in the Month group footer.
The Insurance per month is calculated in the Report in the Month group footer and the formula for that is
.
I would like to show a grand total for the quarter in the report footer showing the total Insurance payable but I can't seem to figure out the formula.
I've tried
but no luck.
Any assistance would be appreciated.
I am trying to sum a calculated control in a report footer but not having any luck.
This is a quarterly report that calculates the insurance payable per month within the quarter based on a set percentage per invoice. Note, the insurance payable is not calculated per invoice but per total invoices per month.
E.g.
Date | Invoice # | Total | Insurable Amount (70% of Total on totals >$50) | Insurance (17.1% of the Total Insurable Amount for the Month Up to but not exceeding $5200) |
23-Jan-2024 | 01 | 6000.00 | 4200.00 | |
31-Jan-2024 | 02 | 3000.00 | 2100.00 | |
31-Jan-2024 | 03 | 187.50 | 131.25 | |
31-Jan-2024 | 04 | 500.00 | 350.00 | |
31-Jan-2024 | 05 | 20.00 | 0.00 | |
6781.25 | 889.20 |
Up to Insurable Amount is calculated in the associated query. The total insurable is summed in the report in a text box named txtTTLInsurable in the Month group footer.
The Insurance per month is calculated in the Report in the Month group footer and the formula for that is
Code:
=IIf([txtTTLInsurable]>=5200,5200*0.171,[txtTTLInsurable]*0.171)
I would like to show a grand total for the quarter in the report footer showing the total Insurance payable but I can't seem to figure out the formula.
I've tried
Code:
=Sum(IIf([txtTTLInsurable]>=5200,5200*0.171,[txtTTLInsurable]*0.171))
Any assistance would be appreciated.