Solved

SSRS2008 -  single dataset for multiple parameters in the report

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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 …
It is helpful to note: This is a cosmetic update and is not required, but should help your reports look better for your boss.  This issue has manifested itself in SSRS version 3.0 is where I have seen this behavior in.  And this behavior is only see…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

919 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

18 Experts available now in Live!

Get 1:1 Help Now