Skip to content

Commit 9b2d23f

Browse files
author
Jill Grant
authored
Merge pull request #31099 from mohitp930/mp7112024-freshness
Freshness - SSRS Batch 1
2 parents 21dbf3b + 79f7b3b commit 9b2d23f

6 files changed

Lines changed: 64 additions & 54 deletions

File tree

Lines changed: 64 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,131 +1,141 @@
11
---
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.
44
author: maggiesMSFT
55
ms.author: maggies
6-
ms.date: 09/02/2021
6+
ms.date: 07/19/2024
77
ms.service: reporting-services
88
ms.subservice: report-design
9-
ms.topic: conceptual
9+
ms.topic: how-to
1010
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.
1113
---
12-
# Add a filter to a paginated report (Report Builder)
14+
# Add a filter to a Report Builder paginated report
1315

1416
[!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)]
1517

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.
1719

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.
1921

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.
2123

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).
2325

2426
> [!NOTE]
2527
> [!INCLUDE[ssRBRDDup](../../includes/ssrbrddup-md.md)]
2628
2729
## Set a filter on a data region
2830

29-
1. Open a report in **Design** view.
31+
1. Open a report in **Design** view.
3032

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.":::
3236

3337
> [!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**.
3539
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.
3741

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.":::
3945

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.
4147

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.
4349

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.
4551

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**.
4753

48-
For examples of filter equations, see [Filter equation examples &#40;Report Builder&#41;](../../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).
4955

50-
1. Select **OK**.
56+
1. Select **OK**.
5157

5258
## Set a filter on a Tablix row or column group
5359

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.
5761

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.
5963

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.
6169

62-
1. Select **Add**. A new blank filter equation appears.
70+
1. Select **Add**. A new blank filter equation appears.
6371

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.
6573

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.
6775

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.
6977

7078
1. In the **Value** box, enter the expression or value against which you want the filter to evaluate the value in **Expression**.
7179

72-
For examples of filter equations, see [Filter equation examples &#40;Report Builder&#41;](../../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).
7381

7482
1. Select **OK**.
7583

7684
## Set a filter on a Chart category group
7785

78-
1. Open a report in **Design** view.
86+
1. Open a report in **Design** view.
7987

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.
8189

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**.
8391

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.":::
8595

86-
1. Select **Add**. A new blank filter equation appears.
96+
1. Select **Add**. A new blank filter equation appears.
8797

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.
8999

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.
91101

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.
93103

94104
1. In the **Value** box, type the expression or value against which you want the filter to evaluate the value in **Expression**.
95105

96-
For examples of filter equations, see [Filter equation examples &#40;Report Builder&#41;](../../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).
97107

98108
1. Select **OK**.
99109

100110
## Set a filter on a Chart series group
101111

102-
1. Open a report in **Design** view.
112+
1. Open a report in **Design** view.
103113

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.
105115

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.":::
107119

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.
109121

110-
1. Select **Add**. A new blank filter equation appears.
122+
1. Select **Add**. A new blank filter equation appears.
111123

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.
113125

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.
115127

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.
117129

118130
1. In the **Value** box, type the expression or value against which you want the filter to evaluate the value in **Expression**.
119131

120-
For examples of filter equations, see [Filter equation examples &#40;Report Builder&#41;](../../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).
121133

122134
1. Select **OK**.
123135

124136
## Related content
125-
[Add dataset filters, data region filters, and group filters &#40;Report Builder&#41;](../../reporting-services/report-design/add-dataset-filters-data-region-filters-and-group-filters.md)
126-
[Expression examples &#40;Report Builder&#41;](../../reporting-services/report-design/expression-examples-report-builder-and-ssrs.md)
127-
[Gauges &#40;Report Builder&#41;](../../reporting-services/report-design/gauges-report-builder-and-ssrs.md)
128-
[Tables, matrices, and lists &#40;Report Builder&#41;](../../reporting-services/report-design/tables-matrices-and-lists-report-builder-and-ssrs.md)
129-
[Charts &#40;Report Builder&#41;](../../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)
131141

41 KB
Loading
102 KB
Loading
70.3 KB
Loading
20.7 KB
Loading
99.4 KB
Loading

0 commit comments

Comments
 (0)