|
1 | 1 | --- |
2 | | -title: "Add a filter to a paginated report" |
3 | | -description: Find out how to add a filter to a dataset, data region, or group when you want to include or exclude specific values for calculations in a paginated report. |
| 2 | +title: Add a filter to a Report Builder paginated report |
| 3 | +description: Learn how to add a filter to a dataset, data region, or group when you want to include or exclude specific values for calculations in a paginated report. |
4 | 4 | author: maggiesMSFT |
5 | 5 | ms.author: maggies |
6 | | -ms.date: 09/02/2021 |
| 6 | +ms.date: 07/19/2024 |
7 | 7 | ms.service: reporting-services |
8 | 8 | ms.subservice: report-design |
9 | | -ms.topic: conceptual |
| 9 | +ms.topic: how-to |
10 | 10 | ms.custom: updatefrequency5 |
| 11 | + |
| 12 | +#customer intent: As a Report Builder user, I want to learn how to add filters to my reports so that I can interactively include and exclude values in my report calculations. |
11 | 13 | --- |
12 | | -# Add a filter to a paginated report (Report Builder) |
| 14 | +# Add a filter to a Report Builder paginated report |
13 | 15 |
|
14 | 16 | [!INCLUDE[ssrs-appliesto](../../includes/ssrs-appliesto.md)] [!INCLUDE [ssrs-appliesto-ssrs-rb](../../includes/ssrs-appliesto-ssrs-rb.md)] [!INCLUDE [ssrs-appliesto-pbi-rb](../../includes/ssrs-appliesto-pbi-rb.md)] [!INCLUDE [ssrb-applies-to-ssdt-yes](../../includes/ssrb-applies-to-ssdt-yes.md)] |
15 | 17 |
|
16 | | -Add a filter to a dataset, data region, or group to a paginated report when you want to include or exclude specific values for calculations or display. Filters are applied at run time first on the dataset. Then, the filters are applied on the data region and then on the group, in top-down order for group hierarchies. In a table, matrix, or list, filters for row groups, column groups, and adjacent groups are applied independently. In a chart, filters for category groups and series groups are applied independently. |
| 18 | +Add a filter to a dataset, data region, or group to a paginated report when you want to include or exclude specific values for calculations or display. Filters are applied at run time first on the dataset. Then, the filters are applied on the data region, and then on the group, in top-down order for group hierarchies. In a table, matrix, or list, filters for row groups, column groups, and adjacent groups are applied independently. In a chart, filters for category groups and series groups are applied independently. |
17 | 19 |
|
18 | | - To add a filter, you must specify one or more filter equations. A filter equation consists of an expression that identifies the data that you want to filter, an operator, and the value to compare to. The data types of the filtered data and the value must match. Filtering on aggregate values for a dataset or data region isn't supported. |
| 20 | +To add a filter, specify one or more filter equations. A filter equation consists of an expression that identifies the data that you want to filter, an operator, and the value to compare to. The data types of the filtered data and the value must match. Filtering on aggregate values for a dataset or data region isn't supported. |
19 | 21 |
|
20 | | - To filter data points in a chart, you can set a filter on a category group or a series group. By default, the chart uses the built-in function Sum to aggregate values that belong to the same group into an individual data point in the series. If you change the aggregate function of a series, you must change the aggregate function in the filter expression. |
| 22 | +To filter data points in a chart, you can set a filter on a category group or a series group. By default, the chart uses the built-in function **Sum** to aggregate values that belong to the same group into an individual data point in the series. If you change the aggregate function of a series, you must change the aggregate function in the filter expression. |
21 | 23 |
|
22 | | - For more information about filtering embedded and shared datasets, see [Add a filter to a dataset (Report Builder)](../../reporting-services/report-data/add-a-filter-to-a-dataset-report-builder-and-ssrs.md). |
| 24 | + For more information about filtering embedded and shared datasets, see [Add a filter to a dataset (Report Builder and SSRS)](../../reporting-services/report-data/add-a-filter-to-a-dataset-report-builder-and-ssrs.md). |
23 | 25 |
|
24 | 26 | > [!NOTE] |
25 | 27 | > [!INCLUDE[ssRBRDDup](../../includes/ssrbrddup-md.md)] |
26 | 28 | |
27 | 29 | ## Set a filter on a data region |
28 | 30 |
|
29 | | -1. Open a report in **Design** view. |
| 31 | +1. Open a report in **Design** view. |
30 | 32 |
|
31 | | -1. Select the data region on the design surface, and then right-click `<data region>`**Properties**. For a gauge, select **Gauge Panel Properties**. The `<data region>`**Properties** dialog opens. |
| 33 | +1. Select the data region on the design surface, and then right-click `<data region>`**Properties**. For a gauge, select **Gauge Panel Properties**. The `<data region>`**Properties** dialog opens. |
| 34 | + |
| 35 | + :::image type="content" source="../../reporting-services/report-design/media/gauge-panel-properties.png" alt-text="Screenshot of the context menu for a Gauge highlighting the Gauge Panel Properties option."::: |
32 | 36 |
|
33 | 37 | > [!NOTE] |
34 | | - > On a Tablix data region, right-click the corner cell or a row or column handle, and then select **Tablix Properties**. |
| 38 | + > On a Tablix data region, right-click the corner cell or a row or column handle, and then select **Tablix Properties**. |
35 | 39 | |
36 | | -1. Select **Filters**. This action displays the current list of filter equations. By default, the list is empty. |
| 40 | +1. Select **Filters**. This action displays the current list of filter equations. By default, the list is empty. |
37 | 41 |
|
38 | | -1. Select **Add**. A new blank filter equation appears. |
| 42 | +1. Select **Add**. A new blank filter equation appears. |
| 43 | + |
| 44 | + :::image type="content" source="../../reporting-services/report-design/media/add-gauge-filter.png" alt-text="Screenshot of the Filters tab in the Gauge Panel Properties dialog box that highlights the add button."::: |
39 | 45 |
|
40 | | -1. In **Expression**, enter or select the expression for the field to filter. To edit the expression, select the expression (*fx*) button. |
| 46 | +1. In **Expression**, enter or select the expression for the field to filter. To edit the expression, select the expression **fx** button. |
41 | 47 |
|
42 | | -1. From the list, select the data type that matches the type of data in the expression you created in step 5. |
| 48 | +1. From the list, select the data type that matches the type of data in the expression you created in step 5. |
43 | 49 |
|
44 | | -1. In the **Operator** box, select the operator that you want the filter to use to compare the values in the **Expression** box and the **Value** box. The operator you choose determines the number of values that are used from the next step. |
| 50 | +1. In the **Operator** box, select the operator that you want the filter to use to compare the values in the **Expression** box and the **Value** box. The operator you choose determines the number of values that are used from the next step. |
45 | 51 |
|
46 | | -1. In the **Value** box, enter the expression or value against which you want the filter to evaluate the value in **Expression**. |
| 52 | +1. In the **Value** box, enter the expression or value against which you want the filter to evaluate the value in **Expression**. |
47 | 53 |
|
48 | | - For examples of filter equations, see [Filter equation examples (Report Builder)](../../reporting-services/report-design/filter-equation-examples-report-builder-and-ssrs.md). |
| 54 | + For examples of filter equations, see [Filter equation examples in a paginated report (Report Builder)](../../reporting-services/report-design/filter-equation-examples-report-builder-and-ssrs.md). |
49 | 55 |
|
50 | | -1. Select **OK**. |
| 56 | +1. Select **OK**. |
51 | 57 |
|
52 | 58 | ## Set a filter on a Tablix row or column group |
53 | 59 |
|
54 | | -1. Open a report in **Design** view. |
55 | | - |
56 | | -1. Right-click the table, matrix, or list data region on the design surface and select it. The **Grouping** pane displays the groups for the selected item. |
| 60 | +1. Open a report in **Design** view. |
57 | 61 |
|
58 | | -1. In the **Grouping** pane, right-click the group, and then select **Edit Group**. The **Tablix Group** dialog opens. |
| 62 | +1. Select table, matrix, or list data region on the design surface. The **Grouping** pane displays the groups for the selected item. |
59 | 63 |
|
60 | | -1. Select **Filters**. This action displays the current list of filter equations. By default, the list is empty. |
| 64 | +1. In the **Grouping** pane, right-click the group, and then select **Group Properties** to add filter to the group. |
| 65 | + |
| 66 | + :::image type="content" source="../../reporting-services/report-design/media/group-properties.png" alt-text="Screenshot of the context menu for a Tablix data region group that highlights the Group Properties option."::: |
| 67 | + |
| 68 | +1. Select **Filters**. This action displays the current list of filter equations. By default, the list is empty. |
61 | 69 |
|
62 | | -1. Select **Add**. A new blank filter equation appears. |
| 70 | +1. Select **Add**. A new blank filter equation appears. |
63 | 71 |
|
64 | | -1. In **Expression**, enter or select the expression for the field to filter. To edit the expression, select the expression (*fx*) button. |
| 72 | +1. In **Expression**, enter or select the expression for the field to filter. To edit the expression, select the expression **fx** button. |
65 | 73 |
|
66 | | -1. From the list, select the data type that matches the type of data in the expression you created in step 5. |
| 74 | +1. From the list, select the data type that matches the type of data in the expression you created in step 5. |
67 | 75 |
|
68 | | -1. In the **Operator** box, select the operator that you want the filter to use to compare the values in the **Expression** box and the **Value** box. The operator you choose determines the number of values that are used from the next step. |
| 76 | +1. In the **Operator** box, select the operator that you want the filter to use to compare the values in the **Expression** box and the **Value** box. The operator you choose determines the number of values that are used from the next step. |
69 | 77 |
|
70 | 78 | 1. In the **Value** box, enter the expression or value against which you want the filter to evaluate the value in **Expression**. |
71 | 79 |
|
72 | | - For examples of filter equations, see [Filter equation examples (Report Builder)](../../reporting-services/report-design/filter-equation-examples-report-builder-and-ssrs.md). |
| 80 | + For examples of filter equations, see [Filter equation examples in a paginated report (Report Builder)](../../reporting-services/report-design/filter-equation-examples-report-builder-and-ssrs.md). |
73 | 81 |
|
74 | 82 | 1. Select **OK**. |
75 | 83 |
|
76 | 84 | ## Set a filter on a Chart category group |
77 | 85 |
|
78 | | -1. Open a report in **Design** view. |
| 86 | +1. Open a report in **Design** view. |
79 | 87 |
|
80 | | -1. On the design surface, double-click the chart to bring up data, series, and category field drop zones. |
| 88 | +1. On the design surface, select the chart to bring up data, series, and **Category Groups** drop zones. |
81 | 89 |
|
82 | | -1. Right-click on a field contained in the category field drop zone and select **Category Group Properties**. |
| 90 | +1. Right-click on a field contained in the **Category Group** drop zone and select **Category Group Properties**. |
83 | 91 |
|
84 | | -1. Select **Filters**. This action displays the current list of filter equations. By default, the list is empty. |
| 92 | +1. Select **Filters**. This action displays the current list of filter equations. By default, the list is empty. |
| 93 | + |
| 94 | + :::image type="content" source="../../reporting-services/report-design/media/category-group-properties.png" alt-text="Screenshot of the context menu for the Category Group drop zone that highlights the Category Group Properties option."::: |
85 | 95 |
|
86 | | -1. Select **Add**. A new blank filter equation appears. |
| 96 | +1. Select **Add**. A new blank filter equation appears. |
87 | 97 |
|
88 | | -1. In **Expression**, enter or select the expression for the field to filter. To edit the expression, select the expression (*fx*) button. |
| 98 | +1. In **Expression**, enter or select the expression for the field to filter. To edit the expression, select the expression **fx** button. |
89 | 99 |
|
90 | | -1. From the list, select the data type that matches the type of data in the expression you created in step 5. |
| 100 | +1. From the list, select the data type that matches the type of data in the expression you created in step 5. |
91 | 101 |
|
92 | | -1. In the **Operator** box, select the operator that you want the filter to use to compare the values in the **Expression** box and the **Value** box. The operator you choose determines the number of values that are used from the next step. |
| 102 | +1. In the **Operator** box, select the operator that you want the filter to use to compare the values in the **Expression** box and the **Value** box. The operator you choose determines the number of values that are used from the next step. |
93 | 103 |
|
94 | 104 | 1. In the **Value** box, type the expression or value against which you want the filter to evaluate the value in **Expression**. |
95 | 105 |
|
96 | | - For examples of filter equations, see [Filter equation examples (Report Builder)](../../reporting-services/report-design/filter-equation-examples-report-builder-and-ssrs.md). |
| 106 | + For examples of filter equations, see [Filter equation examples in a paginated report (Report Builder)](../../reporting-services/report-design/filter-equation-examples-report-builder-and-ssrs.md). |
97 | 107 |
|
98 | 108 | 1. Select **OK**. |
99 | 109 |
|
100 | 110 | ## Set a filter on a Chart series group |
101 | 111 |
|
102 | | -1. Open a report in **Design** view. |
| 112 | +1. Open a report in **Design** view. |
103 | 113 |
|
104 | | -1. On the design surface, double-click the chart to bring up data, series, and category field drop zones. |
| 114 | +1. On the design surface, double-click the chart to bring up data, series, and category field drop zones. |
105 | 115 |
|
106 | | -1. Right-click on a field contained in the series field drop zone and select **Series Group Properties**. |
| 116 | +1. Right-click on a field contained in the series field drop zone and select **Series Group Properties**. |
| 117 | + |
| 118 | + :::image type="content" source="../../reporting-services/report-design/media/series-group-properties.png" alt-text="Screenshot of the context menu for the Series Group drop zone that highlights the Series Group Properties option."::: |
107 | 119 |
|
108 | | -1. Select **Filters**. This action displays the current list of filter equations. By default, the list is empty. |
| 120 | +1. Select **Filters**. This action displays the current list of filter equations. By default, the list is empty. |
109 | 121 |
|
110 | | -1. Select **Add**. A new blank filter equation appears. |
| 122 | +1. Select **Add**. A new blank filter equation appears. |
111 | 123 |
|
112 | | -1. In **Expression**, enter or select the expression for the field to filter. To edit the expression, select the expression (*fx*) button. |
| 124 | +1. In **Expression**, enter or select the expression for the field to filter. To edit the expression, select the expression **fx** button. |
113 | 125 |
|
114 | | -1. From the list, select the data type that matches the type of data in the expression you created in step 5. |
| 126 | +1. From the list, select the data type that matches the type of data in the expression you created in step 5. |
115 | 127 |
|
116 | | -1. In the **Operator** box, select the operator that you want the filter to use to compare the values in the **Expression** box and the **Value** box. The operator you choose determines the number of values that are used from the next step. |
| 128 | +1. In the **Operator** box, select the operator that you want the filter to use to compare the values in the **Expression** box and the **Value** box. The operator you choose determines the number of values that are used from the next step. |
117 | 129 |
|
118 | 130 | 1. In the **Value** box, type the expression or value against which you want the filter to evaluate the value in **Expression**. |
119 | 131 |
|
120 | | - For examples of filter equations, see [Filter equation examples (Report Builder)](../../reporting-services/report-design/filter-equation-examples-report-builder-and-ssrs.md). |
| 132 | + For examples of filter equations, see [Filter equation examples in a paginated report (Report Builder)](../../reporting-services/report-design/filter-equation-examples-report-builder-and-ssrs.md). |
121 | 133 |
|
122 | 134 | 1. Select **OK**. |
123 | 135 |
|
124 | 136 | ## Related content |
125 | | - [Add dataset filters, data region filters, and group filters (Report Builder)](../../reporting-services/report-design/add-dataset-filters-data-region-filters-and-group-filters.md) |
126 | | - [Expression examples (Report Builder)](../../reporting-services/report-design/expression-examples-report-builder-and-ssrs.md) |
127 | | - [Gauges (Report Builder)](../../reporting-services/report-design/gauges-report-builder-and-ssrs.md) |
128 | | - [Tables, matrices, and lists (Report Builder)](../../reporting-services/report-design/tables-matrices-and-lists-report-builder-and-ssrs.md) |
129 | | - [Charts (Report Builder)](../../reporting-services/report-design/charts-report-builder-and-ssrs.md) |
130 | | - |
| 137 | + |
| 138 | +- [Add dataset filters, data region filters, and group filters to a paginated report (Report Builder)](../../reporting-services/report-design/add-dataset-filters-data-region-filters-and-group-filters.md) |
| 139 | +- [Expression examples in paginated reports (Report Builder)](../../reporting-services/report-design/expression-examples-report-builder-and-ssrs.md) |
| 140 | +- [Gauges in a paginated report (Report Builder)](../../reporting-services/report-design/gauges-report-builder-and-ssrs.md) |
131 | 141 |
|
0 commit comments