web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Answered

how to display the query filter in ssrs report header

(0) ShareShare
ReportReport
Posted on by 45
Hi Team,
 
Kindly advise me, how can i display the query filter on the report header. Thank you in advance.
 
Screenshot for the reference.
 
I have the same question (0)
  • Suggested answer
    Kevin Xia Profile Picture
    Microsoft Employee on at
    Hi,
    To implement your requirements, you need to use Report Designer:
    1. Open the report designer and select the report header section.
    2. Add a textbox in the report header section to display the value of the query filter.
    3. In the expression of the textbox, use the function to retrieve the value of the query filter.
    4. Set the position and style of the textbox to fit the layout of the report header.
    You can refer to this document: View and design financial reports - Finance & Operations | Dynamics 365 | Microsoft Learn, which describes how to use Report Designer.
    Best regards,
    Kevin
  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at
    I have a blog post covering this scenario: Printing dynamic parameters. It should be a good starting point for you.
  • Bibin TV Profile Picture
    45 on at
    Hi Martin,
    I appreciate the solution you shared. I've tested your function, but it appears that the loop isn't executing, possibly because the record count is zero, despite the record filter being in place. Please refer to the screenshot for more details.
     
    Query Filter
     
     
    Looping is not happening
     
  • Verified answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at
    Maybe there is a QueryFilter instead of a QueryBuildRange. Try this:
    for (int i = 1; i <= _query.queryFilterCount(); i++)
    {
        QueryFilter queryFilter = _query.queryFilter(i);
    }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 302 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 183 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 120 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans