SharePoint Multiple Select Parameter Dropdown with SQL Server Reporting Services

When leveraging a SharePoint List as an SSRS data source, one major problem is formatting of list items as they appear in reports.  This is fairly easy to solve in code. Another issue is leveraging Multiple Lines of Text columns as Report parameters.  This is actually fairly tricky and has limitations.

In order to leverage a Multiple Lines of Text column as a Report parameter, the first thing to keep in mind is that an Embedded Data Set is a requirement.  A Shared Data Set cannot be used with this solution.

First, add the following code to the Report.  As more values are added to the Multiple Lines of Text (e.g. more choices), this code will need to be manually adjusted.  Replace “MyField” with the internal field name.  The below example is valid for 4 choices in the Report parameter.

Next, you’ll need to modify your Data Set Expression, removing a portion of the CAML query until it looks similar to the following:

This example should help you get started to using Multiple Lines of Text as a value for Report parameters.  This will allow you to leverage this field type in as a Multiple Select Report Parameter.

Leave a Reply