Solved

SSRS2008 -  single dataset for multiple parameters in the report

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

A recent question popped up and the discussion heated up regarding updating a COMMENTS (TXT) field in a table using SSRS. http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Q_27475269.html?cid=1572#a37227028 (htt…
A recent questions about how to add SSRS named instances, couldn't find any that talks about SQL server 2008, anyway I decided to help by creating some screen shots. The installation is straightforward, you just pop the SQL server 2008 installati…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

739 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