简体   繁体   English

SSRS 表达式打开特定报告

[英]SSRS Expression to Open Specific Report

I have a SSRS dashboard that has a calender image on it and under the image properties I have an action to Go to Report and a specific report was listed.我有一个 SSRS 仪表板,上面有一个日历图像,在图像属性下我有一个对 Go 的操作来报告,并列出了一个特定的报告。 Depending on the measure the user is looking at in the dashboard when they click it a 12 or 24 month trend chart will load.根据用户单击仪表板时正在查看的度量,将加载 12 或 24 个月的趋势图。 It works fine when I just have it set to go to a specific report but when I put an expression into the Specify a Report option I get a weird error that I have been researching but the error seems possibly misleading so I thought I would just put the expression I am using out here to see if anyone has any direction for me as it seems like what I am trying to do is simple but I may be searching wrong.当我将其设置为 go 到特定报告时,它工作正常,但是当我将表达式放入“指定报告”选项时,我收到了一个我一直在研究的奇怪错误,但该错误似乎可能具有误导性,所以我想我会放我在这里使用的表达是为了看看是否有人对我有任何指导,因为看起来我想做的事情很简单,但我可能搜索错了。 Thanks in advance!提前致谢!

I have the expression opening the 24 month chart of the definition type is CSH and eventually it will check for other conditions but I wanted one to work before I went on.我打开定义类型的 24 个月图表的表达式是 CSH,最终它会检查其他条件,但我希望在继续之前有一个工作。

=IIF(Fields,MEAS_DEFINITION_TYPE = "CSH"."FITDash_Trend24mo,rdl",Nothing) =IIF(字段,MEAS_DEFINITION_TYPE = “CSH”。“FITDash_Trend24mo,rdl”,无)

I get this error and it started up after I added the expression above.我收到此错误,并在添加上面的表达式后启动。 The datatype of MEAS_DEFINTION_TYPE is nvarchar(25): MEAS_DEFINTION_TYPE 的数据类型是 nvarchar(25):

Severity Code Description Project File Line Suppression State Error [rsCompilerErrorInExpression] The ActionInfo.Action.Drillthrough.ReportName expression for the image 'Calendar25' contains an error: [BC30311] Value of type 'Microsoft.ReportingServices.ReportProcessing.ReportObjectModel.Field' cannot be converted to 'String'.严重性代码 描述 项目文件行抑制 State 错误 [rsCompilerErrorInExpression] 图像“Calendar25”的 ActionInfo.Action.Drillthrough.ReportName 表达式包含错误:[BC30311]“Microsoft.ReportingServices.ReportProcessing.ReportObjectModel.Field”类型的值不能转换为“字符串”。

Common mistake, you have forgotten to specify the .Value property of the field常见错误,您忘记指定字段的.Value属性

Try尝试

=IIF(Fields!MEAS_DEFINITION_TYPE.Value = "CSH","FITDash_Trend24mo.rdl",Nothing)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM