This section explains formula field creation at both record and summary levels.
Please Note: The 'if-else' function does not support other functions in the Formula Expression.
This section describes Summary Level Formula field.
Check out the illustration on creating a Formula Field at the Summary level.
The user can also create a formula field choosing the Summary Level as a level option from the Formula field editor window.
Navigate to the Design page of the report.
Click the Create Calculated Field icon.
The Create Calculated Field window appears.
Navigate to the Formula tab (It is the default tab).
Give a name to the new field.
Choose Summary Level from the Level drop-down menu.
Select a Save as option (It allows only Measure as the Save As option).
Select fields using the Fields tab.
Select an Operator from the Operators column.
Enter a Formula Expression using the Fields and Operators.
Click the Save option.
A notification message ensures that the Formula field is created.
A new Formula Field gets created and added to the list of dimensions and measures.
Add the newly created Formula Field to the top bar together with the earlier existing columns taken to create the new column.
Click the GO option.
The Formula Field data gets displayed in the current View for the users to validate the Formula.
Please Note:
The Summary level Formula Field only gets saved as a Measure. It can't be saved as a Dimension to the Data Store.
Summary Level will not be listed for the space where the MongoDB server is configured in the Admin Settings.
This page describes Record Level Formula field as Dimension and Measure in a Report.
Please Note: The user can set the database settings using the Data Store Settings option provided under the Configuration part of the Administration module.
Check out the given walk-through on creating a formula field at the record level.
Navigate to the Design tab after selecting a Data Store to design a new view.
Click the Create Calculated field icon.
The user gets redirected to the Create Calculated Field window.
Please navigate to the FORMULA tab (It opens by default).
Formula Name: Give a title to the formula field.
Level: The user can create the calculated field at two levels.
Record Level
Summary Level
Type: Select an option from the drop-down menu to decide the kind of the Formula Field.
Dimension
Measure
Fields: All fields from the selected Data Store list are in this window. The users can select the required fields by tapping on them.
Functions: All the available functions are listed in this window. The users can select the required functions to apply them to the chosen field.
Formula Expression: Based on the selected combination of Fields with Operators or Functions the Formula Expression is entered in this space.
Click the Save option to save the formula field or calculated field.
Please Note: The users can select the required operator to add and complete the formula for a Measure column.
A notification message appears to ensure that the Formula Field gets created.
The newly created formula field gets added to the selected Data Store.
Select the formula column name to get it in the top panel.
Click the GO option.
The column data is displayed in the Upper case.
Click the Save View icon to save the View to the Report.
A notification appears and the user gets redirected to the final screen of the Report with the View added to it.
Please Note:
The Formula Fields created with the Record Level option can be saved as either Dimension or Measure. Based on the selected option for the Type, the displayed Fields may vary in the right-side panel.
Double click on the Functions or Operators from the Formula Field Editor where the MongoDB server is configured in the Admin Settings as it generates one expression. The tan function does not support the MongoDB server.