SSRS – Creating Linked Report with Multiple Parameters

reportingssrs

I'm trying to create a linked report in SSRS to a report that has an "allow multiple values" parameter called CompanyCode.

If i call it with a single parameter it works fine, but I can't figure out how to call it with multiple. Here's what I've tried:

CompanyCode1,CompanyCode2

and

CompanyCode1

CompanyCode2

and

'CompanyCode1','CompanyCode2'

Best Answer

I' pretty sure you actually have to use a function for that.

From a quick google search, here are a few options:

=SPLIT(JOIN(Parameters!<your param name>.Value,","),",")

Or

=join(Parameters!<your param name>.Value,",")

One thing I remember vividly from my SSRS/ReportBuilder days was that when you're passing the value in from the main to the sub report (and it has multiple values), you pass the param in as "[@paramName]" and not "Parameters!.param.Value"