Hi @ArunRaaman ,
To begin, we need to understand the definition of query parameters. A query parameter is passed to the data query engine to be incorporated into the SQL script's WHERE clause or some other part of the SQL that can accept parameters.
Query parameters are processed on the data source server and used to limit data retrieved from the data source. When we define dataset query that includes variables, Reporting Services creates corresponding query parameters.
when we add the following Transact-SQL WHERE clause as the last line in the query:
WHERE StoreID = (@StoreID)
The WHERE clause limits the retrieved data to the store identifier that is specified by the query parameter @StoreID.
For more information. please refer to: Tutorial: Add a Parameter to Your Report (Report Builder).
Best Regards,
Joy
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.