Microsoft training courses | Wise Owl - home page

Phone (01457) 858877 or email

MULTIVALUE PARAMETERS IN REPORTING SERVICES

Part one of a three-part series of blogs

This blog shows how to create multivalue parameters based on dropdowns, whether in SQL Server Reporting Services or Report Builder 3.0.

  1. MultiValue Parameters - SSRS and Report Builder (this article)
  2. Creating multivalue parameters in Reporting Services
  3. Showing the Values Chosen for a Multivalue Parameter
Posted by Andy Brown on 07 November 2011 | 2 comments

MultiValue Parameters - SSRS and Report Builder

This blog shows how you can create multivalue parameters in both SQL Server Reporting Services 2008 R2 (the techniques are the same as for previous versions) and in Report Builder 3.0.

Example of multivalue parameter - studio dropdown

A typical multivalue parameter - we're choosing the list of studios for which to display films

 

When you choose a multivalue parameter combination, your report should show you (in this case) all films made by the chosen studios:

Report showing selected films

The films for the studios selected

This blog shows you how to create a multivalue parameter like this, and also how to get the clever titles working!

Multivalue choices shown at top of report

You can use the JOIN function to show the choices made - see later in this blog for more details.

 

The first thing to do is to create the multivalue parameter and incorporate it into your report!

 

MULTIVALUE PARAMETERS IN REPORTING SERVICES

Part one of a three-part series of blogs

This blog shows how to create multivalue parameters based on dropdowns, whether in SQL Server Reporting Services or Report Builder 3.0.

  1. MultiValue Parameters - SSRS and Report Builder (this article)
  2. Creating multivalue parameters in Reporting Services
  3. Showing the Values Chosen for a Multivalue Parameter

Comments on this blog

This blog has 2 comments:

Comment added by Robert on 08 August 2012 at 01:11 GMT

Thank you for clearly documenting the multivalue parameter usage in Reporting Services.
I was stumbling on two aspects
a) incorrectly setting the parameter filter on the dataset (not on Tablix) and,
b) using expression builder to return paramter value was returning Parameter.Value(0) by default, thus returning only one value from the selected list.

This is the best documentation I found so far on this topic. Appreciate it!

Reply from Andy Brown (blog author)
You can just as easily set the parameter filter on the dataset, and from the performance point of view this will run much more quickly, since SQL Server doesn't then have to return all of the underlying rows for the dataset and only then apply a filter to them to get the ones needed for the tablix item.
 
Comment added by bstinger on 24 September 2012 at 14:05 GMT
Great instructions.  Thank you so much!

All content copyright Wise Owl Business Solutions Ltd 2013. All rights reserved.