SSRS iif statement error “No accessible IIf accepts this number of arguments” [closed]

旧时模样 提交于 2019-12-24 00:52:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!