简体   繁体   中英

SSRS How to hide a tablix if parameter does not match column values?

I am trying to hide a tablix if a user entry text parameter (with no specified available values) does not match column values found in a column. I want to hide the tablix if it matches and show the tablix if it doesn't match any column values.

In the tablix properties I'm trying to 'Show or hide based on an expression' with the expression:

=iif(Parameters!IDNumberEntry.Value = Fields!IDNumber.Value,True,False)

and its not working. It just shows it no matter if the ID entered in the text box parameter matches values in the IDNumber column or not.

Any ideas?

I figured it out. In the'Show or hide based on an expression', I used lookup to see if an ID entered in a parameter matches the ID value in a the column.

=iif(lookup(Parameters!IDNumberEntry.Value,Fields!IDNumber.Value,Fields!IDNumber.Value,"DataSet1")="",False,true)

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