Question : Reporting Services - How to Pre-populate Drop Down Parameter w/ Select All

I've got a report that works great, except every time it runs, my user has to "select all" from the drop down parameter.

I would like the report to run with that parameter pre-populated.

The report is against a view called Backlog.  I created a "New Dataset" under the data tab, and used the query "select distinct(rep) from backlog"  and called it REP_LOV (for list of values)

Then, in the original report query I added "WHERE REP IN (@Rep)" to allow my user to select the rep from a dropdown list.

In Report Parameters, I set @Rep as Multi-Value, then for available values I set "From Query" and for the dataset i chose my newly created "REP_LOV"  dataset and for the field value I chose "rep"... that all works great.

But in the Default values, I selected "From Query," and for the dataset I chose REP_LOV, and for the value field I chose Rep... and still, when I run the report, it doesn't pre-populate the drop down with anything.  The drop down box starts out blank, and I have to choose something from that drop down, every time I run the report.

If I select the drop down, and click "select all" everythng runs fine, but I want it come up prepopulated, so my user doesn't have to click the dropdown list unless she wants to limit the query.

Any ideas?

Answer : Reporting Services - How to Pre-populate Drop Down Parameter w/ Select All

The most important thing is that the query returning the list used for default values has the exact same items listed in the same order as what is being used to populate the selection list. If you have the same dataset hooked up for both then that should be a no brainer. I confirmed that this works using SSRS 2005 service pack 2. If you are not on the latest service pack or an earlier version of SSRS then you may be out of luck as there's nothing else that I can suggest...sorry.
Random Solutions  
 
programming4us programming4us