Solved

Pass multi value parameter from matrix to detail report

Posted on 2008-11-03
2
523 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now