Hi
I need your help for query expression builder with iif condition.
Criteria of expression is
if [TotalPoints] is equal to 3.5 then [basic]*.05 or [basic]/2
if [TotalPoints] is above or equal 6 but less then 7 than [basic]*1 or [basic]
if [TotalPoints] is above or equal 7 but less then 8 than [basic]*1.5
if [TotalPoints] is equal or above 8 then [basic]*2
i am able to do the following but not exactly what i need as per above.
There might be some thing i am missing, need your kind help thanks.
I need your help for query expression builder with iif condition.
Criteria of expression is
if [TotalPoints] is equal to 3.5 then [basic]*.05 or [basic]/2
if [TotalPoints] is above or equal 6 but less then 7 than [basic]*1 or [basic]
if [TotalPoints] is above or equal 7 but less then 8 than [basic]*1.5
if [TotalPoints] is equal or above 8 then [basic]*2
i am able to do the following but not exactly what i need as per above.
Code:
IIf([TotalPoints]<=3.5,[Basic]*0.5,IIf([TotalPoints]<6<6.9,[Basic],IIf([TotalPoints]<7<7.9,[Basic]*1.5,IIf([TotalPoints]>7.9,[Basic]*2))))
There might be some thing i am missing, need your kind help thanks.