问题
Can someone provide some insight why I am getting this error:
"Overload resolution failed because no accessible 'IIf' accepts this number of arguments"
Here is the IIf statement:
=iif(Sum(Fields!CallsRemaining.Value))<0,1,((Sum(Fields!TotalInventory.Value)+Sum(Fields!CallsRemaining.Value))/(Sum(Fields!TotalInventory.Value)))
It only has 2 arguments, so not sure why overloading. Any suggestions would be greatly appreciated.
Thanks.
回答1:
Parenthesis was in the wrong place. Fixed with simple move:
=iif(Sum(Fields!CallsRemaining.Value)<0,1,((Sum(Fields!TotalInventory.Value)+Sum(Fields!CallsRemaining.Value))/(Sum(Fields!TotalInventory.Value))))
来源:https://stackoverflow.com/questions/29372309/ssrs-iif-statement-error-no-accessible-iif-accepts-this-number-of-arguments