简体   繁体   中英

How to Hide a Tablix based on another Tablix's Visibility setting in SSRS

How do we go about hiding a tablix based on another tablix's visibility setting? I have two tablixes on a report that are linked to another report. I'd like them to alternate (hide one when the other show).

Assuming you have an expression that determines whether Tablix1 is displayed or not, surely the solution to this is to set the Tablix2 visibility to be the opposite. eg

Tablix1 - Hidden property

=iif(condition, false, true)

Tablix2 - Hidden property

=iif(condition, true false)

I admit this does mean doubling up the code, but I'm not aware of a way for a report element to reference the properties of the other items on the report other than .Value .

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