Solved

How do I create a drop down list in SSRS with Parameters

Posted on 2011-09-30
2
219 Views
Last Modified: 2016-02-15
I have created many BASIC reports in SSRS with Stored Procedures.  I have never created a report with multiple filters from drop down lists.  I need to be able to select one or more in the list.

I am very versed in SQL but light on complex stored procedures.  I will try to provide as much information as I can.

Drop downs need to be set up like a filter on a pivot table.  SEE ATTACHED.  The goal is to REPLICATE the SSRS Report to look like the filters used in the PIVOT.  I need Help with this.

My stored procedure:

ALTER PROCEDURE [dbo].[PROC_CR_ARCA_No_Docs_Out_Rpt]

@qry_result char(30)  <<What do I put here to indicate a list?>>
@pgm_nm char (30)
@pgm_stg_nm
@special_campaign
@Portfolio

AS

SELECT *  FROM [corporate_reporting].dbo.tbl_ARAC_No_Doc
WHERE qry_result = (@qry_result)
AND pgm_nm IN = pgm_nm
AND pgm_stg_nm = @pgm_stg_nm
AND special_campaign = @special_campaign
AND Portfolio = @Portfolio
9-30-2011-12-36-27-PM.jpg
0
Comment
Question by:gracie1972
2 Comments
 
LVL 21

Expert Comment

by:Alpesh Patel
ID: 36895463
The image depicted above is a Excel environment and it is developed using SSAS.

As per my knowledge it is not possible in SSRS to create this type of report. You need to create report in excel using the SSAS service directly.
0
 
LVL 11

Accepted Solution

by:
Simone B earned 500 total points
ID: 36903516
To clarify:

If I understand correctly, you would like to have a parameter for @qry_result that is itself populated from a query?

If so, create a new data set as follows:

On the Data tab, select <New Dataset...> from the drop down. Give it a name, select your data source, and command type = text. Enter the query:

SELECT qry_result  FROM [corporate_reporting].dbo.tbl_ARAC_No_Doc

Change your primary query's where clause:

WHERE qry_result IN (@qry_result)

From the Report Menu, select Report Parameters. Highlight your qry_result parameter on the left, and in the Available values section, select the radio button From Query, then changed the Dataset to the new one that you just created. Change the value field and label field accordingly.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

In this article I will describe the Copy Database Wizard 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.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

757 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

23 Experts available now in Live!

Get 1:1 Help Now