2017-03-20 92 views
-3

我如何結合這兩個表達式= SUM(IIF與中和InStr函數

我想放在

=mid(Fields!Created_By.Value , InStr(Fields!Created_By.Value,"|")+1) 

以下表達式中:

=sum(IIf(Fields!Issue_Status.Value = "New Report", 1, 0),"Incident_Log") 
+1

你有什麼嘗試過遠?當你總結這些字符串時你期望得到什麼? – StevenWhite

回答

0

與解決我的問題與:

=sum( 

    iif(mid(Fields!Created_By.Value , InStr(Fields!Created_By.Value,"\")+1)=mid(User!UserID , InStr(User!UserID,"\")+1) 
      ,iif(Fields!Issue_Status.Value <> "Closed",1,0) 
        ,0) 

,"My_Data_Source")