简体   繁体   中英

SSRS 2012 - Sending multiple values in parameter to main dataset

I have a report that is up and running but I need to restrict the data on a parameter that takes multiple string-valued staff codes.

  1. I created a parameter called Practioner which is a text type, ticked on Allow Multiple values and also on Visible .

  2. In the available values , I made this code come from the field called mbillaty from the dataset3 under the Get values from a query option. I've checked data3 is fine in SQL server.

3.Now, I've gone to my dataset1 where all the reporting data sits then put the parameter, with the name ? and =Join(Parameters!Practitioner.Value,", ") for the parameter value. Then in the query, in the where clause, I've put: ......mbility in (?) What should this SSRS be interpreting as is : .......mbility in ('AAB','KKR','RDR') , if the user picked these three staffs.

When I run the report, it definitley works when I check one of the practioners, but as soon as I more than one, the report wouldn't run. It does not return any error, but just the header shows, which I think means that no data is found.

Experts, do you see where I've gone wrong with this?

Thanks

If you're able to create UDFs, this link might be helpful. How do I split a string so I can access item x?

The parameter would be parsed in the SQL/function, and SSRS would simple pass the concatenated string.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM