Share via

Multi-value parameters in rdl not working

Dom 976 Reputation points
2022-10-26T22:06:45.427+00:00

I have a report that runs customer activity based on promotion codes. I want the user to be able to select the parameter values from a list that I specify. In the parameter properties|General tab, I check off Allow Multiple Values. In available values, I add two labels and values. When running the report, the parameter dropdown displays my two values. If I select either of the values individually, the report runs fine. However, if I select BOTH values (or Select All), the report returns NO data. What am I doing wrong? What can I show you to help me troubleshoot?

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.

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2022-10-27T06:18:54.607+00:00

    Hi @Dom
    I agree with Olaf. When adding a multi-value parameter, the text of the query variable must contain the IN operator.
    Like this:
    254603-2.png
    This official document explains how to add multi-valued parameters: add-a-multi-value-parameter-to-a-report.
    Hope this can help you.
    Best regards,
    Aniya

    Was this answer helpful?


  2. Olaf Helper 47,616 Reputation points
    2022-10-27T05:12:35.917+00:00

    the report returns NO data.

    Then your SQL statement using the parameter is wrong. I guess you used and equal = compare, it should be an IN operator instead, like

    WHERE Field IN (@parameter)  
    

    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.