简体   繁体   中英

First newbie question: SSRS Tablix visibility parameter

SSRS: I have two tablix. One dataset.
Tablix 1 = Summary
Tablix 2 = Details
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. By name in report code or by visibility in the tablix?

I've tried everything I could find on 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

I tried to replicate your scenario on my local report project. I create a mutlivalue parameter. 多值参数

Then I have available values as below

在此处输入图片说明

Then I added below expression on visibilty of Summary Tablix.

=IIF(Parameters!ChooseTablix.Count>1,false,
IIF(Parameters!ChooseTablix.Value(0)<>1,true,false))

Below expression for Details Tablix

 =IIF(Parameters!ChooseTablix.Count>1,false,
    IIF(Parameters!ChooseTablix.Value(0)<>2,true,false))

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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