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
420 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 12

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 12

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 12

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Written by Valentino Vranken. A while ago I wrote an article called Chart Optimization Tips (http://www.experts-exchange.com/articles/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Chart-Optimization-Tips.html).  This article explained how …
In this short article I will be talking about two functions in the SQL Server Reporting Services (SSRS) function stack.  Those functions are IIF() and Switch().  And I'll be showing you how easy it is to add an Else part to the Switch function. T…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

12 Experts available now in Live!

Get 1:1 Help Now