Expressions are used to specify criteria for retrieving and formatting data, creating calculated fields and calculating summaries, conditionally shaping data and changing a report control's appearance.
An expression is a string that, when parsed and processed, evaluates a value. Expressions consist of field names, constants, operators, and functions. Field names must be wrapped in brackets. Here are examples of expressions:
"[Quantity] * [UnitPrice] * (1 - [BonusAmount])"
"[FirstName] + ' ' + [LastName]"
"[Country] == 'USA'"
"[OrderDate] > #8/16/1994# AND [Quantity] > 20"
There is a list of operators, constants and functions that you can use in expressions. Refer to the Expression Syntax topic for details on their usage.
The Report Designer allows you to use the Expression Editor that provides functions, operators, data source fields, report elements, constants and variables to construct expressions.
The Expression Editor supports syntax highlighting and intelligent code completion (suggesting functions and available data elements as you type).
The Expression Editor displays all the errors it finds in the specified expression.
The Report Designer allows you to use the Filter Editor to specify filter criteria. The Filter Editor provides a visual interface for constructing filter criteria with an unlimited number of filter conditions combined by logical operators. You can also switch to the Text mode to type a filter string manually.
The Filter Editor supports intelligent code completion (suggesting functions and available data elements as you type) and error validation features.