Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 SSRS Filter question

Author  Topic 

bh0526
Yak Posting Veteran

71 Posts

Posted - 2011-12-13 : 09:05:55
I have a simple report with a table that basically list items. I presently display all items. This all works so far.

Now I want to allow the user to filter on the item name. So I right clicked on the table detail row and selected Tablix Properties. I then clicked Add, to add a filter and I select the field name ItemName. I want to allow the user to search for a portion of the item name. So I selected LIKE as the operator. But I'm not sure what to do for the value. The value will change each time the user runs the report and enters something. So I'm not sure what to do here.

Maybe I'm doing this all wrong. I was hoping I could display all items and then let the user filter down to the items they want. Is this possible using this table filter?

Bob

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-12-13 : 09:11:48
you need to add a corresponding filter to report for passing the item value. Then in properties for parameter point it to dataset which retrieves the list of items from your item table (you've to create dataset for that). Then once you render the report you'll get an item filter with all items from your table populated. on selecting it will pass the item name and filter results based on that

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

k_nataraj
Starting Member

7 Posts

Posted - 2011-12-19 : 06:08:40
Hi

You do it this way aswell. Within in your dataset add a where condition like below:

[YourFieldName] LIKE '%'+@YourFieldName+'%'

This will create a filter for you aswell.

I have recently uploaded couple of videos on Parameters, here are the links, hope it helps.


http://www.bitipsntricks.com/?p=293
http://www.bitipsntricks.com/?p=303
http://www.bitipsntricks.com/?p=314

regards
Natraj
Go to Top of Page
   

- Advertisement -