Commonly Used Filters (Report Builder 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.
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.
|Simple Expression||Data Type||Operator||Value||Description|
|Integer||>||Includes data values that are greater than 7.|
|Integer||TOP N||Includes the top 10 data values.|
|Integer||TOP %||Includes the top 20% of data values.|
|Text||>||Includes all values of type System.Decimal (SQL "money" data types) greater than $100.|
|DateTime||>||Includes all dates from January 1, 2008 to the present date.|
|DateTime||BETWEEN||Includes dates from January 1, 2008 up to and including February 1, 2008.|
|Text||LIKE||All territory names that end in "east".|
|Text||LIKE||All territory names that include North and South at the beginning of the name.|
|Text||IN||All subcategory values that begin with the letters B, C, or T.|
The following table provides examples of filter expression that includes a single-value or multivalue parameter reference.
|Parameter type||(Filter) Expression||Operator||Value||Data Type|
Report Parameters (Report Builder and Report Designer)
Add Dataset Filters, Data Region Filters, and Group Filters (Report Builder and SSRS)
Expression Uses in Reports (Report Builder and SSRS)
Expression Examples (Report Builder and SSRS)
Data Types in Expressions (Report Builder and SSRS)