A dataset parameters are created based on the query parameters provided in the dataset query and also, an equivalent report parameters are created for each query variable. The linking between a dataset parameter and a report parameter will take place automatically. But, if a report parameter is renamed then we need to perform the link action manually.
Refer Create Data section for better understanding with the following sections. The below image showcases the initial view of query designer.
Drag and drop a table into design area. Now, click on the Parameter icon in the query designer toolbar.
Now, the Parameters
dialog will be launched.
Add
icon.
=Parameters!SalesOrderID.Value
format.OK
to save the dataset parameter.
Repeat the above steps to create multiple dataset parameters.
Once you save the dataset, an equivalent report parameters will be created under the PARAMETERS
panel like below.
The report parameter name is created using the value provided in Value field. If the value field is left empty when creating the dataset parameter then the report parameter name is created using the value provided in Parameter Name field.
The Value field in dataset parameter can contain an expression that evaluates to a value, to pass to the query parameter.
Expression
.
SalesOrderID
field is assigned as expression for SalesOrderID
parameter.
Black color
, if the expression is applied to the value field.
Reset
.
White color
, after reset action.
When executing a query, the result will be retrieved from database based on the order of the parameter in the query.
The below snap depicts the parameter list before reordering the parameters.
To change the order of the dataset parameters after creating it, follow the below steps.
The below snap depicts the parameter list after reordering the parameters.
Click on the Delete
icon in the right corner to remove the dataset parameter from the list.
The following procedure is applicable for below scenario’s:
To link a query variable with an existing report parameter.
To relink a report parameter with query parameter, if the report parameter is renamed.
Refer Create report parameter section and create the required report parameters in your report. Refer Create query parameter section and create the required query parameters.
The following steps guides to link a query parameter with a report parameter.
Parameters
dialog, the available query parameters in the dataset query will be automatically listed in the dialog.
OK
button to save the parameter linking state.In the below snap, SalesOrderID
report parameter is linked with a SalesOrderID
query parameter.