- style
YOU ARE CURRENTLY ACCESSING AN OUTDATED VERSION OF THE ZOOLA HELP DOCUMENTATION
Go to https://help.zoola.io for up-to-date documentation, videos, walkthroughs, and case studies.
Creating a Calculated Field
This section describes how to create a calculated field:
To create a calculated field, complete the following steps:
First, create the Ad Hoc view to use. To do this, select Create > Ad Hoc View from the Home page. The Select Data wizard appears.
Click the View As Tree icon and navigate to Domains.
Select a Domain, then click the Choose Data button. The Data Chooser window appears.
In the Data Chooser window, select your desired fields, pre-filters, and display settings, then click the OK button. A new Ad Hoc view opens.
In the Ad Hoc view, hover over the Detail Selector icon
The New Calculated Field dialog box appears, displaying the Formula Builder:
at the top right of the Fields section of the Domain Selection panel and select Create Calculated Field from the context menu.In the Field Name field, enter an appropriate name for your Calculated Field.
Create the formula:
Labels for fields and measures must be in double quotes ("): "Customer ID", "Date ordered".
Text must be in single quotes ('): '--'.
Levels must be in single quotes ('): 'ColumnGroup', 'Total'.
Make sure Show arguments in formula is selected.
As an example, if you were to create a formula that states the difference in days between a student's enrollment and course-start date:
In the Functions list, double-click on ElapsedDays. Because Show arguments in formula is selected, ElapsedDays("DateFieldName1", "DateFieldName2") is entered in the Formula Builder.
In the Formula box, double-click DateFieldName1 to select it, then double-click Date Enrolled in the Fields and Measures list to replace the selected formula value. The Formula Builder displays ElapsedDays("Date Enrolled", "DateFieldName2"). Repeat for the second value.
Click the Validate button to verify that the formula does not have any syntax errors.
The Ad Hoc Editor creates a default summary calculation based on the type of formula you have entered. This section shows how to select a different summary function.
To create a summary calculation, complete the following steps:
After creating your formula on the Formula Builder tab, click the Summary Calculation tab.
Select Mode from the Calculation menu.
Click the Create Field button. The calculated field appears at the bottom of the list of available fields. A special Calculated Field icon indicates it is a calculated field, and its name on the list is bolded.
Related content
Copyright © Lambda Zoola™