Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using dropdown parameters in SSRS report

I can see the text box for my data set that having the

"select col1 from table name " as query. I want to populate dropdown instead of text box. I have created the parameter for it . what to do?

like image 782
Red Swan Avatar asked Jan 31 '11 14:01

Red Swan


People also ask

How do you pass one parameter value to another parameter in SSRS?

To set available values for the second parameter In the Report Data pane, in the Parameters folder, right-click the first parameter, and then click Parameter Properties. In Name, verify that the name of the parameter is correct. Click Available Values. Click Get values from a query.

How do you make a parameter optional in SSRS?

Set the parameter to 'Allow null value' under General section. Null according to SSRS means it does not have to be set, thus making it optional.


2 Answers

In short

  1. Right click the parameter

  2. Select "Available Values" section

  3. Click the "Get values from a query" option

  4. Select the appropriate dataset and fields

like image 77
Nat Avatar answered Sep 28 '22 06:09

Nat


My solution:

  1. Right click the parameter under the "Report Data" and select "Parameter Properties"

  2. Select "Available Values" section

  3. Click the "Get values from a query" option

4a. Select the appropriate query to use

4b. Select the Value that you want the main query to use to generate the data

4c. Select the Label that will show in the drop down box that the User sees and selects a option from

like image 35
Aaron Lelevier Avatar answered Sep 28 '22 07:09

Aaron Lelevier