BrotherBook
Registered User.
- Local time
- Today, 12:07
- Joined
- Jan 22, 2013
- Messages
- 43
Hi-
I have a calculated field in my report called "New Business Revenue". I used the expression builder to calculate this value for each item in my report. I subtotal my report using a field called "Stage". In the "Stage" footer field I am trying to sum my calculated "New Business Revenue" field and then also have an overall total in my report footer.
Here is the code I use to calculate the "New Business Revenue" for each entry.
I split the iff statements into separate lines for ease of reading. The statement works fine for line items, but I can't figure out how to get it to subtotal.
Any help would be appreciated as this is my first attempt at report writing.
I have a calculated field in my report called "New Business Revenue". I used the expression builder to calculate this value for each item in my report. I subtotal my report using a field called "Stage". In the "Stage" footer field I am trying to sum my calculated "New Business Revenue" field and then also have an overall total in my report footer.
Here is the code I use to calculate the "New Business Revenue" for each entry.
Code:
=IIf([Product]="Term Loan" And [Index]="Prime",[Commitment Amount]*([Spread]+0.027)+[Fee],
IIf([Product]="Term Loan",[Commitment Amount]*[Spread]+[Fee],
IIf([Product]="Line of Credit" And [Index]="Prime",([Commitment Amount]*0.5)*([Spread]+0.027)+[Fee],
IIf([Product]="Line of Credit",([Commitment Amount]*0.5)*[Spread]+[Fee],0))))
I split the iff statements into separate lines for ease of reading. The statement works fine for line items, but I can't figure out how to get it to subtotal.
Any help would be appreciated as this is my first attempt at report writing.