
Specify the ‘Available Values’ for the connections in the parameter.
Now you have to modify the data source properties, refer to the image below in order to navigate & include an expression in the data source properties by clicking on Function (“Fx”) button.
Step 3:Using the code
After clicking on the function button you can insert a piece of code to achieve the functionality.Below is the code & the image for the reference.
=IIF(Parameters!<ParameterName>.Value = "<LabelName>", "Data Source = <ServerName>; Initial Catalog =<DatabaseName>",IIF(Parameters! ParameterName.Value = "<LabelName>", "Data Source =<ServerName>; Initial Catalog = <DatabaseName>","Data Source = <ServerName>;Initial Catalog = <DatabaseName>"))
& ";User ID=<>;Password=<> "
Final Ojective Attained
So now when you click on a report parameter, a prompt will appear, here you have to select the source in order to see the particular details in the report from the particular source.
By: Prasad Davange