Solved

Pass multi value parameter from matrix to detail report

Posted on 2008-11-03
2
538 Views
Last Modified: 2012-06-21
Hi Experts,

I have a matrix report that has a multi-value parameter.  I am passing this parameter to a detail report but, only 1 value or "ALL" is passed.  If I choose only a few of the parameters to pass then the detail report parameter is blank and the report doesn't run.  My code to pass the parm is below:

=iif(InScope("matrix1_Referred_Ranking"), Fields!Referred_Ranking.Value,Join(Parameters!Ranking.Value,"\#\"))

I have tried using the custom code found at the following url: http://msdn.microsoft.com/en-us/library/ms155798.aspx.  

Public Function ShowParameterValues(ByVal parameter as Parameter) as String
   Dim s as String
   If parameter.IsMultiValue then
      s = "Multivalue: " 
      For i as integer = 0 to parameter.Count-1
         s = s + CStr(parameter.Value(i)) + " "
      Next
   Else
      s = "Single value: " + CStr(parameter.Value)
   End If
   Return s
End Function
=Code.ShowParameterValues(Parameters!DayOfTheWeek)
I put this code (below) under Textbox properties, Navigation, Jump to report, Parameters and am still receiving only blanks when I 'jump to' the detail report.
=iif(InScope("matrix1_clientName"), Fields!clientName.Value, Code.ShowParameterValues(Parameters!Client.Value))

Any help is appreciated.

Thank you, Lou
0
Comment
Question by:LouWolf
  • 2
2 Comments
 

Author Comment

by:LouWolf
ID: 22869341
It was suggested that I try =Parameters!Ranking.Value.  This resulted in the Total of the matrix working when I drilled down to the detail report but, when I tried any other row \ column, it returned the Total data...each time.
0
 

Accepted Solution

by:
LouWolf earned 0 total points
ID: 22871784
Found this with the help of another Developer...

=iif(InScope("matrix1_Referred_Ranking"), Fields!Referred_Ranking.Value, Split(Join(Parameters!Ranking.Value,","),","))

Thanks, Tina
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

How to increase the row limit in Jasper Server.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

840 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