Solved

SSRS2008 -  single dataset for multiple parameters in the report

Posted on 2014-11-10
3
104 Views
Last Modified: 2015-04-18
Hi,

how can I create a single dataset and use it for multiple parameters in  a given report. (. i.e. Trying to avoid creating a different dataset for each parameter dropdown list in the report)

Thanks in advance
0
Comment
Question by:shmz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
Koen Van Wielink earned 500 total points
ID: 40434202
As far as I know you just create that single data set you like, and each time you add a parameter or set the properties of an existing one, select "get values from a query" under the "Available values" menu. Then select the data set that returns your parameter values. Set the value field (the value to be used by the main data set as the parameter value) and the label field (the field the user sees displayed when selecting the parameter) and you should be good to go.
Note that in order to use a single data set, all your parameters have to be related (i.e. return as a single table), which I think is rare. If for example your parameters are a year and a month, it would be almost impossible to handle this in a single data set as it would return 12 times the same year, once for each month. Also, the user would see the entire data set result each time a parameter value is selected, so you might end up with values that "don't make sense".
Since the data sets returned for parameter values are usually small, there should not be a problem with having multiple data sets for your parameters. I usually create some general stored procedures for parameter values I reuse across report, such as company codes, years, months, product lists, etc. I just add those as I need them.
0
 

Author Comment

by:shmz
ID: 40444934
Many thanks Koen.
I need to do some testing and I'll get back to you.
Cheers
0
 

Author Closing Comment

by:shmz
ID: 40731183
Thanks
0

Featured Post

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In the following article I’ll be discussing and demonstrating several different ways of how images can be put on a report. I’m using SQL Server Reporting Services 2008 R2 CTP, more precisely version 10.50.1352.12, but the methods ex…
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question