= sum(IIF与mid和InStr

时间:2017-03-20 16:59:24

标签: reporting-services expression

如何组合这两个表达式?

我想把

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

在以下表达式中:

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

1 个答案:

答案 0 :(得分: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")