[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More


How To Set Up A Working Report Mult-Value + (Select All) Filter Dropdown in SSRS 2005

Published on
7,395 Points
Last Modified:
Tone' Shelby
I build, provide, educate & evangelize innovative data insight & business productivity solutions.
1. Set up your parameter at the report level as usual, check the box Multi-value, and set the Data Type to String

2. Set the Stored Procedure Parameter to varchar(max)  --<---- This part here is the key to it's success

Example:    @cst_key varchar(max)

3. Set  the WHERE clause to use a split string function so it can parse out the comma seperated values into an array & back out to the calling procedure.

If you already have one that splits strings into a comma seperated value, that will work fine but if you do not,
you can find a handy one here by Expert; chrismc @ http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SQL-Server-2005/Q_23470331.html

Then plug it into the WHERE Clause of your Stored Procedure


       ([cst_key] IN (SELECT VALUE FROM [dbo].[ufn_Split](@cst_key))


Featured Post

Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Discover the basics of using Outlook 2016 from office 365.
If you, like me, have a dislike for using Online Subscription anti-spam services, then this video series is for you. I have an inherent dislike of leaving decisions such as what is and what isn't spamming to other people or services for me and insis…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month