Share via

SSRS report

Mantesh Golla 1 Reputation point
2022-06-06T08:11:48.73+00:00

We have a SSRS report with 4 parameters. The requirement is to remember/retain the last selected parameter values. All the parameters are multi-valued. Please advise Step by step how to do it.

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.

SQL Server Migration Assistant
SQL Server Migration Assistant

A Microsoft tool designed to automate database migration to SQL Server from Access, DB2, MySQL, Oracle, and SAP ASE.


4 answers

Sort by: Most helpful
  1. Heinig, Robert 1 Reputation point
    2022-11-14T13:20:48.587+00:00

    Yes it is possible, even all the way back to SQL 2005 IIRC, you just have to think "kludge" and accept a clunky, inelegant way.

    • Both available values and default values of a parameter can be queries
    • Your "meat" query, best wrapped as stored procedure, can have side effects without your SSRS noticing, besides producing your rowset
    • So you save the selection in a SQL table as side effect of the main query and fetch it in your parameter's source query for the parameter defaults...

    Was this answer helpful?

    0 comments No comments

  2. Olaf Helper 47,621 Reputation points
    2022-06-07T06:56:47.5+00:00

    The requirement is to remember/retain the last selected parameter values

    In SSRS it's not possible.

    Was this answer helpful?

    0 comments No comments

  3. Isabellaz-1451 3,616 Reputation points
    2022-06-07T01:41:06.347+00:00

    Hi @Mantesh Golla

    As far as I know, SSRS doesn't have this feature to automatically select a specific option or a set of options for the parameter dropdown list.

    Best Regards,
    Isabella


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

    Was this answer helpful?

    0 comments No comments

  4. Joyzhao-MSFT 15,651 Reputation points
    2022-06-06T09:47:51.683+00:00

    Hi @Mantesh Golla
    You might consider using Cascading Parameters.

    For detailed tutorials, please see: Cascaded Parameters in SQL Server Reporting Services.

    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.

    Was this answer helpful?

    0 comments No comments

Your answer

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