Solved

Is it possible to change the (select all) to (all dates) in the multi-select parameter selection list in SSRS?

Posted on 2014-01-20
3
423 Views
Last Modified: 2014-01-21
Hi Experts, hopefully an easy question? Is it possible to change the '(select all)' to '(all dates)' in the multi-select parameter selection list in SSRS? This seems hardcoded somewhere?

Many thanks!
0
Comment
Question by:Papa1NZ
  • 3
3 Comments
 
LVL 13

Assisted Solution

by:Koen Van Wielink
Koen Van Wielink earned 500 total points
ID: 39796312
No, as far as I know it is not possible to change this.
What you could do is create a manual parameter value list where you add an option "all dates". In your underlying SQL statement you can then change it in such a way that when "all dates" is selected you include all the dates in your query.
0
 
LVL 13

Accepted Solution

by:
Koen Van Wielink earned 500 total points
ID: 39796323
Just to clarify a bit further, your parameter list query could look something like this:

select NULL as 'Value'
, 'All dates' as 'Label

union all

Select distinct yourDateField as 'Value'
, CONVERT(nvarchar(12), yourDateField, 103) as 'Label'
from yourTable
Where "apply your selection criteria here"

Open in new window


When a user selects "All dates", you change your main report query to include all your selected dates, otherwise you include only the selected dates:

IF @date is null
Begin

Select your report records without a date filter, or to include all desired dates

End

else if @date is not null
Begin

Select your report records with the date parameter in the where clause

end

Open in new window

0
 
LVL 13

Expert Comment

by:Koen Van Wielink
ID: 39796329
By the way, the "103" in the convert statement refers to the style of the date as a string. More here: http://msdn.microsoft.com/en-us/library/ms187928.aspx
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSRS Report Runtime Error 20 64
SSRS Dynamic Date Parameter 25 457
SQL query to summarize items per month 5 71
SSRS Deployment to Web Error 1 6
Written by Valentino Vranken. Introduction: In a previous article (http://www.experts-exchange.com/articles/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Reporting-On-Data-From-Stored-Procedures-part-1.html) I announced that I would writ…
Introduction In the following article I’ll be discussing and demonstrating several different ways of how images can be put on a report. I’m using SQL Server Reporting Services 2008 R2 CTP, more precisely version 10.50.1352.12, but the methods ex…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 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