Add formula column
The Formula step allows you to create a new column in your dataset by applying a custom formula to existing columns.
Step parameters
New Column(string)*: Specify the name for the new column that will contain the result of your formula.Formula*: Enter the formula you want to apply. This can be a mathematical expression, a string manipulation, or a combination of functions. You can reference existing columns in your formula.
Example
Input

Configuration
Output

A column can be referenced by its name without quotes unless they include whitespaces, in such a case you need to use brackets โ[]โ (e.g. [myColumn]).
Any characters string escaped with quotes (simple or double) will be considered as a string.
The supported operators are : addition (+), substraction (-), multiplication (*), division (/), modulo (%).
Supported operators
The following operators are supported by the formula step (note that a value can be a column name or a literal, such as 42 or foo).
+: Does an addition of two numeric values. See theconcatenatestep to append strings-: Does an substraction of two numeric values. See thereplacestep to remove a part of a string*: Multiplies two numeric values./: Divides a numeric value by another. Divisions by zero will returnnull.%: Returns the rest of an integer division. Divisions by zero will returnnull.
Last updated
Was this helpful?