一个SSRS表达式中的多个字符串值

时间:2015-04-07 13:41:34

标签: tsql reporting-services ssrs-expression

我对此SSRS表达式提出了挑战。我需要在表达式中添加 REPORT_NAME" AIA1610U" 以缩小报告中的结果范围。

不确定我在这里做错了什么。我该怎么做呢?任何援助都会很棒。

=SUM(IIf(Fields!NAME.Value = "TOTAL OUTSTANDING APPLICATIONS" ,Fields!DAYS_AGO.Value ,0),"rsOutstandingApplications")- SUM(IIf(Fields!NAME.Value = "ELECTION FORM RECEIVED" ,Fields!DAYS_AGO.Value ,0), "rsOutstandingApplications" )

1 个答案:

答案 0 :(得分:0)

我想出了我的问题。以下是正确答案的结果。

= SUM(IIf(Fields!NAME.Value = "TOTAL OUTSTANDING APPLICATIONS" AND Fields!REPORT_NAME.Value = "AIA1610U", Fields!DAYS_AGO.Value ,0),"rsOutstandingApplications")  - 
  SUM(IIf(Fields!NAME.Value = "ELECTION FORM RECEIVED", Fields!DAYS_AGO.Value ,0), "rsOutstandingApplications" )