[英]First newbie question: SSRS Tablix visibility parameter
SSRS: I have two tablix. SSRS:我有两个Tablix。 One dataset.
一个数据集。
Tablix 1 = Summary Tablix 1 =摘要
Tablix 2 = Details Tablix 2 =详细信息
I would like to set a parameter for the user to choose. 我想设置一个参数供用户选择。 I do not have a field in the data to use as a parameter to differentiate.
我在数据中没有字段用作区分参数。 I have to use the tablix itself.
我必须使用tablix本身。 By name in report code or by visibility in the tablix?
是按报告代码中的名称还是按Tablix中的可见性?
I've tried everything I could find on Stack overflow. 我已经尽力在Stack Overflow上找到的所有内容。 But I have used a method in the past with a code in the report properties.
但是我过去在报表属性中使用了带有代码的方法。 But I can't find the code.
但是我找不到代码。
I would like the user to choose summary or details or both. 我希望用户选择摘要或详细信息,或同时选择两者。 Then see the corresponding tablix
然后看相应的tablix
I tried to replicate your scenario on my local report project. 我试图将您的方案复制到我的本地报告项目中。 I create a mutlivalue parameter.
我创建一个mutlivalue参数。
Then I have available values as below 然后我有如下可用值
Then I added below expression on visibilty of Summary Tablix. 然后我在Summary Tablix的可见性上添加了以下表达式。
=IIF(Parameters!ChooseTablix.Count>1,false,
IIF(Parameters!ChooseTablix.Value(0)<>1,true,false))
Below expression for Details Tablix 下面的表达式以获取详细信息Tablix
=IIF(Parameters!ChooseTablix.Count>1,false,
IIF(Parameters!ChooseTablix.Value(0)<>2,true,false))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.