Using Subtraction JEXL Operator in Data Builder
Perform the following steps to use subtraction JEXL operator in formula to create derived column in Sigma Studio:
Click Data Builder and collate data based on your requirement.
NOTE: If you are changing an existing data aggregator that is already being used in reports, ensure that you re-configure the data aggregator in the respective reports to get the updated data columns.Click child datasource in which you need to create a derived column.
Columns of the selected datasource appear on the right-hand side of the page.Â
Click Derived Columns tab.
Â
Provide name for the new column in Derived Column ID field.
Â
Enter the formula for the column in Formula field. Here we subtract the two columns.
NOTE:
Subtraction – The – operator is used in derived column field in Data Builder.
For example: CREDIT – DEBITÂ
Click Save.
Once the derived column is saved, it gets displayed on the right side.You can also delete the derived column by clicking the close icon.
Â
Click Save to save the data aggregator.
In the following sample report, TOTAL is the derived column that shows the result of the subtraction JEXL formula expression:Â