Filter Equation Examples (Report Builder 3.0 and SSRS)
To create a filter, you must specify one or more filter equations. A filter equation includes an expression, a data type, an operator, and a value. This topic provides examples of commonly used filters.
You can create and modify report definitions (.rdl) in Report Builder 3.0 and in Report Designer in Business Intelligence Development Studio. Each authoring environment provides different ways to create, open, and save reports and related items. For more information, see Designing Reports in Report Designer and Report Builder 3.0 (SSRS) on the Web at microsoft.com.
The following table shows examples of filter equations that use different data types and different operators. The scope for the comparison is determined by report item for which a filter is defined. For example, for a filter defined on a dataset, TOP % 10 is the top 10 percent of values in the dataset; for a filter defined on a group, TOP % 10 is the top 10 percent of values in the group.
Includes data values that are greater than 7.
Includes the top 10 data values.
Includes the top 20% of data values.
Includes all values of type System.Decimal (SQL "money" data types) greater than $100.
Includes all dates from January 1, 2008 to the present date.
Includes dates from January 1, 2008 up to and including February 1, 2008.
All territory names that end in "east".
All territory names that include North and South at the beginning of the name.
B, C, T
All subcategory values that begin with the letters B, C, or T.