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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSRS expression Issue finding a string 10 66
SSRS Access Remotely 5 55
Report Builder 3.0 for Sql Server 2014 1 29
SSRS Highlight Specific Column 3 55
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…
Hi, I have heard from my friends that it’s not possible to create Label Printing report using SSRS. I am amazed after hearing this words not possible in SSRS. I googled lot and found that it is possible to some of people know about the Report Bui…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

895 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

18 Experts available now in Live!

Get 1:1 Help Now