Edit Fields
Fields in a cube define the dimensions and measures available for analysis.
You can edit an existing field to rename it, change its type between dimension and measure, or remove it. You can also create calculated fields that derive new values based on scripts and existing data. When you add or edit a field, it appears in the Dimensions and Measures Fields List on the right side of the Data Source Editor.
Edit a field
- In the Dimensions and Measures Fields List on the right, right-click the field you want to modify.
- Select Edit Field.
- Update the description name if needed.
- Change the type between Dimension and Measure.
- Click Save.
- In the Options panel, select Save Data Source.
Add a calculated field
- In the Dimensions and Measures Fields List on the right, click Add Calculated Field.
- Complete the calculated field builder properties and build the expression.
- Click Validate to check if the SQL Syntax for the calculation is correct.
- Click Save.
- In the Options panel, select Save Data Source.
Calculated field builder
| Field | Description |
|---|---|
| Description | Text label for identifying the calculated field. |
| Type | Field category, either dimension or measure. |
| Type | .NET data type to store the calculated field result. |
| Script | Expression used to calculate the field value. |
| Code helpers | Tool buttons above the script editor that insert operators, brackets, or keywords quickly. |
| Scripts Keywords | Tabs that group building blocks for your expression:
|
| Tables | List of tables available in the data source to use in the script. |
| Others | Additional elements such as:
|
| Validate | Action that checks whether the script is correctly written and executable. |