SSRS Multi Select Parameter Drill Through

Hi All,

I'm using SSRS 2008 and come across an issue:

Assume I have this mapping:

GROUP     Members
    A              1, 2, 3
    B              3, 4, 5


Users in the main report can filter by group, or members.  (Dataset for members is select distinct members from <table> where dbGroup in (select value dbo.fnSplit( @group))  . . . this way if Someone selects A they can only choose 1,2,3, but if A,B are both there they get 1,2,3,4,5).

Now lets say I want to drill through to B . . . so I'm passing B as the parameter, as well as them members of the main report (eg: 1,2,3,4,5).  

in my Child Report, the only members available are 3,4,5 and SSRS doesn't select anything causing data not to show.  Users have to click the check all box and then view report.

Is there a better way of doing this?  







LVL 42
Kyle AbrahamsSenior .Net DeveloperAsked:
Who is Participating?
 
Kyle AbrahamsSenior .Net DeveloperAuthor Commented:
Found the answer.

The trick was to do a union.

Essentially I had to get the Valid Members for the group as the available entries, and then find the valid members within that list to get my default values.

Essentially Parameters became:
Group
ParentSelectedMembers
Members

Group drove available members
Then another stored proc Given group and ParentMembers returned available members.
0
 
Tim HumphriesDirectorCommented:
Hi, why are you passing the members as a parmeter - just pass the selection criteria (B) and replicate the member selection query in the child report. If you cannot specify a default value for members in the chil report, you could add an 'All' option and default to that.

Tim
0
 
Kyle AbrahamsSenior .Net DeveloperAuthor Commented:
Hi Tim,

Because I need to replicate the data.

If they run it for the 3rd member only and they want to see the details of that grouped by the respective group, they don't want to see all of the members in the drill down.
0
 
Tim HumphriesDirectorCommented:
What do you have your default set to for the members paramter in the second report?
0
 
Kyle AbrahamsSenior .Net DeveloperAuthor Commented:
Found answer via a colleague at work.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.