Parameters are used when creating a query for getting data. Previously, in order to use the variable from the report dictionary as a parameter in the request, you needed to create a variable first. Then, when editing the data source to create a setting in the data source you needed to specify the variable as the value of this parameter and to register this parameter in the text query.

From the 2015.3 release, we have made use of variables in queries easier. When you create a variable, you should set the flag Allow using as SQL parameter.

Variable as Parameter in Query

Next, when editing the data source, you should register the name of the variable in the query, using a special character "@" at the beginning of the name.

Variable as Parameter in Query

Then click OK. And the variable will present in the data source and is used as a parameter in the query.
By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.