Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

SSRS - How To Add Filters That Are Optional And That AR APplied To Data Not In the SELECT of the QUERY used By The Report

$
0
0
I want so badly to use SSRS but every time I try its like pulling teeth. Nothing makes logical sense and what’s left is vague.I have a very simple report that’s using a very simple query from a SQL Server DB. All I want to do is add to the report a few optional filter choices and every method I try fails with some kind of error.My query is as follows:SELECT BookID, BookAuthor, BookName, PublicationDateFROM BOOKSThe first field is a numeric value (the Primary key), the next 2 are VARCHAR fields and the last is a DATETIME value. I can get the report to work without filter/parameters but that’s a half done report. How do I add a filter that will:A) Present the user with a list of choice in which they can select one or moany from? The list is a DISTINCT list of BookAuthor from the query. This needs to be optional so if they don’t want o filter by Book Author they don’t have to. I’d also prefer to use a description/label for the filter option that is more user friendly. Something like ‘Author’ is better then BookAuthor.B) I want to add a Date Range filter option that is applied to the Publication Date. The user can enter a FROM Date and a TO date or just one or neither and the report will filter accordingly.C) The query in the report does not contain every column from the BOOKS table. One of these columns is BookStatus. The value in BookStatus consists of several text or VARCHAR values. I’d like to have a filter that lets the user optionally pick one or more Status values. That means that the Filter must be multi-select and must perform a SELECT DISTINCT BookStatus FROM BOOKS to get a proper list of choices for the filter.I believe the above 3 fully cover the various types of filters that I am unable to determine how to create in SSRS. In Crystal Reports this was easy but not in SSRS. Any help even if it’s a link to a How To would be appreciated because the SSRS How-To’s I’ve been through already all require that the filter be used or just don’t work period and I have no idea what it is I’m missing. Thanks

Viewing all articles
Browse latest Browse all 2791

Trending Articles