Solved

SSRS2008 -  single dataset for multiple parameters in the report

Posted on 2014-11-10
3
91 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 12

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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Determine next b-weekly date 12 52
SQL server 2008 SP4 29 33
How to calculate iops? 12 26
Retention Policy for Backups 1 13
Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
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.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now