1

I've one main report in which I have created two different Tablix. (Both have different dataset)

My question is, How can I hide tablix on condition base in SSRS.

For example:

Parameters!First.Value="Y" then hide only first tablix and show second tablix but if Parameters!First="Y" AND Parameters!Second.Value="Y" then show only first tablix not the second one.

How can I achieve this, Please help.

Pedram
  • 6,256
  • 10
  • 65
  • 87
  • I assume you tried setting the visibility / hidden property of the tablixes... What equation did you put in there? – Jonnus Dec 29 '15 at 08:47
  • Yes I've tried like this as per my condition, `=IIF(Parameters!First.Value="Y",False,True)` but the main problem is how can I hide other tablix from this expression? – Pedram Dec 29 '15 at 08:57
  • You need to put conditions in both tablixes. – Anup Agrawal Dec 29 '15 at 10:09
  • I've tried but we have one common condition here is `Parameters!First.Value="Y"` so it is showing both tablix in such condition. – Pedram Dec 29 '15 at 10:11

1 Answers1

0

First Tablix Visibility/Hidden Expression

=Parameters!First.Value="Y" AND NOT(Parameters!Second.Value="Y")

OR

=Parameters!First.Value="Y" AND (Parameters!Second.Value<>"Y" OR ISNOTHING(Parameters!Second.Value))

OR

=IIF(Parameters!First.Value="Y" AND Parameters!Second.Value="Y",False,True)

Second Tablix Visibility/Hidden Expression:

=Parameters!First.Value="Y" AND Parameters!Second.Value="Y"

OR

=iif(Parameters!First.Value="Y" AND Parameters!Second.Value="Y", True, False)

First evaluate both hidden expression independtly.

Note: For expression in SSRS you can write a shortcut expression without using iif.

Anup Agrawal
  • 6,551
  • 1
  • 26
  • 32