Solved

SSRS - Clearing a multi-select drop down

Posted on 2014-10-26
3
395 Views
Last Modified: 2014-10-27
I have two drop downs on my report.  One is single select and the other is multi select.  If I go in and select multiple values from the multi select drop down and run the report then it pulls back the data fine.  Now if I change the value in the single select drop down it refreshes the multi-select drop down with only appropriate values, but the values that I checked before are still checked.    

Is there anyway I can clear all the previous selections in the multi-valued drop down.
0
Comment
Question by:sherbug1015
3 Comments
 
LVL 15

Expert Comment

by:Vikas Garg
ID: 40405835
Hi,

I think that the parameters are Cascading Parameter due to which value of the list changes when value changes in the other parameter.

Hope the below link will give you idea of the cascading parameter

http://technet.microsoft.com/en-us/library/aa337498%28v=sql.105%29.aspx
0
 
LVL 22

Accepted Solution

by:
Nico Bontenbal earned 500 total points
ID: 40405863
I never noticed this before but after some research I think the behavior is even stranger then you describe it. I've create a report with a singe select that shows the values between 1 and 10. And a multi select that shows the values between 2 less and 2 more than the value selected in the single select. So when I select 4 in the single I get the values 2-6 n the multi. When I then select 3 and 4 in the multi and then select 5 in the single, the 3 and 4 are still selected in the multi. But when I select 6 in the single all the values in the multi are cleared. So it looks like the values in the multi are only kept if all them are available. If one is not available the entire selection is reset.
See the sample report MultiSelect1. You'll need to change the Data Source for this report to work. Just point it to any SQL Server database.

I'm afraid there is no easy way to fix this. You just have to make sure that when you select another value in the single select all the values of the multi select are different. I've done this by using this query for the multi select:
SELECT (@single*1000000)+ Number as Number, Text FROM ...

Open in new window

So I add the value of the single select multiplied by 1000000 to the number of the multi select. This only works if the Number for the multi select is always below 1000000 of course. You might need to use a larger value.

This will break your select statement in the data query of course. You'll have to change that one too:
where (@single*1000000)+ Number in (@multi)

Open in new window

See the report MultiSelect2 for a working example.
MultiSelect1.rdl
MultiSelect2.rdl
0
 

Author Closing Comment

by:sherbug1015
ID: 40406179
Thanks.  Not that I know what is causing it, I can provide some workaround.  Thanks again.
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

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…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 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