在SSRS中为链接报告创建条件语句

时间:2017-01-12 21:14:46

标签: sql-server reporting-services

我有一个SSRS SQL Server 2008 R2报告,我需要创建一个switch语句,根据参数值package转到不同的子报告。 当我使用'浏览'指定报告时按钮子报表工作正常。但是当我使用我的表达式时,我得到了错误

  

项目' / UDS报告/ DSParameterizedDynamicReports / PatientDetailsForSpecialAgHomeless'无法找到。 (rsItemNotFound)

我的SpecialPopulationName声明:

switch

如何在= Switch(Fields!UDSPopulationGroupName.Value = "PublicHousing", "/UDS Reports/DSParameterizedDynamicReports/PatientDetailsForSpecialPopPublicHousing", Fields!UDSPopulationGroupName.Value = "Veterans", "/UDS Reports/DSParameterizedDynamicReports/PatientDetailsForSpecialPopVeteran", Fields!UDSPopulationGroupName.Value = "TotalWorkers", Nothing, Fields!UDSPopulationGroupName.Value = "TotalHomeless", Nothing, Fields!UDSPopulationGroupName.Value = "TotalSchoolBased", Nothing, true, "/UDS Reports/DSParameterizedDynamicReports/PatientDetailsForSpecialAgHomeless") 声明中指定报告的路径?

1 个答案:

答案 0 :(得分:0)

想出来...... 不需要路径,只需要报告的名称,它就可以了。