Solved

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

Posted on 2011-09-30
2
226 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

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.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

828 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