SSRS = Dropdown to Stored proc

I have a bunch of dropdowns on an SSRS report.

Each drop down is basically a distinct list of values.

Each drop down is a multi select drop down.


Here is the issue:

If a null or blank value is in the recordset...or the distinct list pulls nothing back in the dropdown...

I need the parameter passed to allow all rows to be sent....or perhaps I need an option to allow in the multiselect for the user to pick a blank or null value.

This way when the user selects the next set of dropdowns a value will be returned.

I dont have a way that I can athink of to make each dropdown based on the other.
LVL 11
Robb HillSenior .Net DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nishant joshiTechnology Development ConsultantCommented:
Hi Hill,

You have to modify your SQL script from where you are pulling blank or null value.

Add UNION ALL SELECT NULL to your record so It will definitely return the null value. Regardless of value is existing or not.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Robb HillSenior .Net DeveloperAuthor Commented:
Will this basically allow it to make the dropdowns in the ssrs side  of things act as if they are optional...
0
ValentinoVBI ConsultantCommented:
Hi, I wrote an article on how to achieve that a while ago, enjoy the read: The "Select ALL" parameter option
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Robb HillSenior .Net DeveloperAuthor Commented:
ValentinoV  

Thats a nice implementation but I do not see how that makes it optional.

If I have 13 filters like this on a report....

How to I prevent one from messing up another filter.

I either need some dependency betweeen filters

Or way to let the user chose if they want to use the filter.


Or if there is a smarter way I am all ears and eyes:)
0
Robb HillSenior .Net DeveloperAuthor Commented:
so on top of what  ValentinoV said ..I need  this to also include  when a user selects all ....any values not in the select list...so null or blank
0
ValentinoVBI ConsultantCommented:
Hi Robb,

How to I prevent one from messing up another filter.

It's all in the WHERE clause as far as I can tell, because of the inclusion of the "-1" parameters shouldn't influence each other. Of course, make sure to put the round brackets around the parts that belong together as in:

WHERE ( field1 in (@filter1) or -1 in (@filter1) )
  OR ( field2 in (@filter2) or -1 in (@filter2) )
...

All the best,
VV.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.