Guest_imported
New member
- Jan 1, 1970
- 0
I work at a car dealership and am building a database to show commissions being paid to the salespeople. However, they don't get paid until a car has been "funded" by a bank. I want my report to show all the commissions being paid for the week plus the sales that haven't been funded. The problem lies in that I want to calculate a grand total of only the commissions being paid and not of the non-funded sales, but I still want to show them all. I grouped the report by salesperson, then by whether a sale was funded or not. So, I got a way to show the earnings for each salesperson in the Funded Footer by using the formula (FUNDED is a checkbox):
This is fine, but it displays 2 "earnings" for each salesperson. The first has the sum of the money from the funded deals and the second is 0 from the unfunded deals. I would appreciate any help on removing the "Earnings=0", but my bigger problem is that I cannot get a Grand Total at the end of the report. It gives me the sum of all the sales whether funded or not, which does not give an accurate representation of what we actually pay out. Any suggestions. Thanks and sorry for being so wordy.
Code:
=IIf([FUNDED]=True,Sum([COMMISSION PAID]),0)
This is fine, but it displays 2 "earnings" for each salesperson. The first has the sum of the money from the funded deals and the second is 0 from the unfunded deals. I would appreciate any help on removing the "Earnings=0", but my bigger problem is that I cannot get a Grand Total at the end of the report. It gives me the sum of all the sales whether funded or not, which does not give an accurate representation of what we actually pay out. Any suggestions. Thanks and sorry for being so wordy.