Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

Passing parameters from MDX SSRS report to SQL SRRS report

$
0
0
Hi, I have a matrix report in SSRS 2008 r2 (using Report Builder 3) running against an SSAS data sourceIt is a simple matrix with a count by two dimensions with five parametersThis works fine, users can use the parameters to filter the result setI have a second SSRS report running against a T-SQL relational data source that returns a detailed list of records. It takes six parametersThis second report is intended to act as a 'drill-to-detail' for the first report and I'm trying to get the parameters selected in the first report to pass to the second. But without much successThe values on the columns and rows of the report one matrix pass through fine to the second report, it is the values passed by the parameters that is causing the problem, well two problemsFirst, the value being passed is in the format [Dimension].[Hierarchy].[Member], how do I strip-out the [Member] value and pass only that to report two?Second, the default for the report one parameters is the "All Member", this gets passed as [Dimension].[Hierarchy].[All Members]. How can I convert this to an array that can be recognized by the parameters of report two?Report two is able to accept multiple value parameter values, so, for example, if I am able to convert the "All member" to an array containing all the hierarchy members the T-SQL will handle this successfullyI've asked Mr Google but without any joy, there's plenty on passing parameters to MDX and SQL queries but I have found nothing on passing an MDX parameter value to a T-SQL query so your assistance will be appreciatedThank you

Viewing all articles
Browse latest Browse all 2791

Trending Articles