New to Telerik Reporting? Download free 30-day trial

How to Add filtering to Group

A filter defined on a report/table group limits the group members to certain values. These filters operate over the group members after the groups are calculated. Group filters are similar to the HAVING clause in a SQL statement.

We will use the filter to hide/show the dynamic groups members. Additionally we add the possibility for dynamic filtering by using report parameters. The example shown is based on the ProductSales demo report

Using dynamic filter to show/hide crosstab group members

  1. Open the report in the designer and show the Group Explorer

    Group Explorer

    Group Еxplorer

  2. Define a new Report Parameter DetailsForYear as shown on the picture. Use the same DataSource as for the report. The parameter should be MultiValue.

    Define Report Parameter

    Define Report Parameter

  3. Select the Crosstab (or any cell in it) and invoke the Edit Filters dialog for the Qtr Column group. Enter the filter expression as shown on next picture

    Set Filter

    Set Filter

  4. Preview the report. Now it is possible to select for which year to show Quarter columns and hide for the rest.



See Also

Filter Group members

In this article