How to chain parameters in Report Builder 3.0

S G 156 Reputation points
2020-10-10T01:58:22.207+00:00

Hi all,
Is there a way to chain parameters in Report Builder? If for instance, the report has a parameter by state and another parameter for county, I want to only see the data in the county listbox for the selected state and not all counties for all states. I was thinking to modify the query for dataset for county to say a.state = b.state and a.countyid = b.countyid. Would this work?

Thank you,

Seyed

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,910 questions
0 comments No comments
{count} votes

Accepted answer
  1. Joyzhao-MSFT 15,576 Reputation points
    2020-10-30T09:34:13.38+00:00

    Hi @S G ,

    Has your issue been resolved?

    If you have any question, please feel free to let me know.

    Best Regards,
    Joy


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our [documentation][1] to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Joyzhao-MSFT 15,576 Reputation points
    2020-10-12T01:34:07.92+00:00

    Hi @S G ,

    Do you want to add cascading parameters to the report?
    Cascading parameters provide a way of managing large amounts of report data. You can define a set of related parameters so that the list of values for one parameter depends on the value chosen in another parameter. For example, the first parameter is independent and might present a list of product categories. When the user selects a category, the second parameter is dependent on the value of the first parameter. Its values are updated with a list of subcategories within the chosen category. When the user views the report, the values for both the category and subcategory parameters are used to filter report data.
    You can refer to: Add cascading parameters to the report (Report Builder and SSRS)
    Regards,
    Joy


    If the answer is helpful, please click "Accept Answer" and upvote it.
    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.

    1 person found this answer helpful.

  2. S G 156 Reputation points
    2020-10-12T15:28:28.047+00:00

    Hi Joy,
    Thank you for the answer. I will follow-up with the instructions and let you know if I have any questions.

    Seyed

    0 comments No comments

  3. Joyzhao-MSFT 15,576 Reputation points
    2020-10-19T02:01:58.29+00:00

    Hi @S G ,

    The error suggest that the query is not well formed to be run in Oracle.

    I would suggest you to :

    1. Check the query see if it could run locally in Oracle.
    2. Have you set the parameter in dataset setting? In this query for dependent parameter, you need to specify the query parameter to equal to report parameter.Associate a Query Parameter with a Report Parameter (Report Builder and SSRS)
      Best Regards,
      Joy

    If the answer is helpful, please click "Accept Answer" and upvote it.
    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.

    0 comments No comments

  4. Olaf Helper 43,901 Reputation points
    2020-10-19T07:31:15.767+00:00

    Which data provider are you using? Not every one supports named parameters, here you have to use the question mark ? instead.

    SELECT ST 
    FROM THUNDER.GGSALES
    WHERE (REGION = ?)
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.