
Originally Posted by
June7
Those are some amazing commission rates!
One issue is the function can't handle case where [N Egide] is exactly 100000 (I know, highly unlikely but not impossible).
The IIf is incomplete. The False option is not provided for the second IIf, however, don't need the second IIf.
Also, what are the fields [N Egide] and [Comm Amt N Egide]. Why is the threshhold test on [N Egide] but the commission is calculated on [Comm Amt N Egide]?
As set up for the agent with transactions greater than 100000, the entire amount will be at 80% commission. If you want the commission paid at 50% for the amount <=100000 and 80% only on the amount that exceeds 100000, need to calculate the difference and apply rates to the two parts.
Split NME: IIf([q_Commissions-Agent_Totals_2012]![N Egide]<=100000, [Comm Amt N Egide]*0.5, ([Comm Amt N Egide]-100000)*0.8 + 100000*0.5)
EDIT: Looks like I was composing reply when Paul posted.