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
422 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

After much searching across the internet I have found that you could not set the name of the file you were attaching to dynamic report subscriptons in Microsoft Reporting Services. I did manage to find one article showing you how your could make a s…
Introduction As you'll probably know, a data region in a SQL Server Reporting Services report can be linked to only one dataset.  This makes it troublesome when you need to display data from more than one dataset in the same data region.  SQL Serve…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

803 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