The QuickReports Designer provides the capability to create calculated fields that allow you to apply complex expressions to data fields that are obtained from the QuickReport's data source.
You can use these fields in data visualizations as regular source table fields.
Creating a Calculated Field
You can add create new calculated field based on the existing data source fields.
To create a calculated field, right click on the data source area and select Add calculated field, or use corresponding button in the Ribbon's Data Source tab:
This invokes the Expression Editor dialog, which allows you to specify an expression that will be used to obtain calculated field values. Here, you can construct the required expression.
You can use the following elements in expressions.
- Functions
- Operators
- Columns
- Constants
- Parameters
After the expression has been specified, select OK. This displays a new calculated field in the data source structure. Now you can specify the required calculated field type, change its default name, etc.
Editing a Calculated Field
To edit a calculated field, use its context menu. This menu contains the following items:
Edit Expression...
Invokes the Expression Editor dialog, which allows you to change an expression for an existing calculated field.
Field Type
Specifies the type of the calculated field.
Note. The type of a newly created calculated field is detected automatically based on the type of values returned by the specified expression.
Rename
Changes the calculated field name.
Delete
Removes the existing calculated field from the data source.