Solved

SSRS2008 -  single dataset for multiple parameters in the report

Posted on 2014-11-10
3
98 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
  • 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Introduction Earlier I wrote an article about the new lookup functions (http://www.experts-exchange.com/A_3433.html) that ship with SQL Server 2008 R2.  In this article I’m going to show you another new feature of SSRS 2008 R2, this time in the vis…
In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

777 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