简体   繁体   中英

How to hide rows based on filter value in parameter

I am working on SSRS report. I have job number field in my report. But I would like to hide some particular job number based on value "Exclude job number" parameter.

And I am using text based parameter for accepting multiple values for Exclude job number parameter. Suppose if someone type 'ABC123' "Exclude job number" in parameter all the rows should hide from report and others show. Is there any other easy method for this.

Thanks

The best way to approach this is to have a query as your data set, in that data set add a where clause to exclude those values:

Select * from [Table]
where JobID not in(@JobId)

在此处输入图片说明

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