Can you help me debug this statement? I'm trying to use the "max" function so that I can decrease the number of if statements. Here's my defined field:
BetterofRate: IIf([position]=3,0,IIf([position]=1 And [Grid_Assignment]="Locked",[base_rate],IIf([position]=50 And [Grid_Assignment]="Locked",[base_rate],iif(([position]=1,max([br_qual_rate],[rate],[abc_leader_rate]),iif(([position]=50,max([br_qual_rate],[rate],[abc_leader_Rate],0))))
The error I receive: Expression you entered has a function containing the wrong number of arguments.