Custom filtering SSRS report

Jwalant Vyas 1 Reputation point
2021-11-12T04:00:52.9+00:00

I have the following data in the column I want to filter the table with.

ABC1
ABC2
ABC3
ABC4
ABC5

when I choose "Allow multiple values" it comes up with a full list with the All option as well.

I want to just have 2 options
ABC1 and ALL

how can I 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.
3,061 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Joyzhao-MSFT 15,631 Reputation points
    2021-11-12T08:21:44.927+00:00

    Hi @Jwalant Vyas ,
    This seems to require only three steps. I tested it locally. I have a table like this:
    148706-00.jpg
    At first, I use the where clause to add query parameters in the dataset. In my case as follows:

    148737-03.jpg

    After running the query, a parameter named "Agent_Code" is created.

    148767-04.jpg

    Set Parameter Properties-Available Values-Specify values.

    148802-05.jpg

    Set the Dataset Properties-Parameters option-the setting expression is as follows:

    148803-06.jpg

    Preview:

    148719-preview01.jpg
    148720-preview02.jpg

    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.

    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.