Evaluate Expression to Column
Evaluate Expression is not a spreadsheet formula function, and does not use the syntax of monday.com formulas. It is meant for mathematical expressions.
Evaluates a MathJS expression and stores the result in the selected column.
To evaluate expressions on subitems use the special
automation template for subitem expressions
Operators
- + (addition) - 2 + 2 = 4
- - (subtraction) - 5 - 3 = 2
- * (multiplication) - 2 * 3 = 6
- / (division) - 6 / 2 = 3
- ! (factorial) - 5! = 120
- ^ (exponent) - 2^2 = 4
- % (modulus) - 5 % 3 = 2
Functions
- mean(a, b, ...) - calculates the mean (average) of the values.
- abs(x) - absolute value of x
- ceil(x, [n]) - round x toward plus infinity, with n (optional) decimal precision
- fix(x, [n]) - round x toward 0, with n (optional) decimal precision
- floor(x, [n]) - round x toward minus infinity, with n (optional) decimal precision
- lcm(a, b, ...) - least common multiple of a set of at least two values
- max(a, b, ...) - the maximum value of a set of at least two values
- min(a, b, ...) - the minimum value of a set of at least two values
- round(x, [n]) - rounds x toward nearest integer
- sign(x) - returns 1 for positive numbers, -1 for negative numbers and 0 for 0.
- sqrt(x) - square root of x
- add(a, b, ...) - sum a list of numbers
- gcd(a, b, ...) - greatest common denominator of a set of numbers.
- size([x])[1] - size of array of numbers in value x (used to get the count of values in a mirror of numbers column)
Mirror Columns
Mirrors of number columns are supported, however you must first if multiple items are connected use add(x) (sum), size([x])[1] (count), max(x), min(x), mean(x) (average) to get the value shown in the mirror column. However you could also use the mirror value in any function that accepts a set of numbers, such as lcm or gcd.
The monday.com API returns a list of numbers separated by commas for mirrors of numbers columns, rather than convert this list to what is shown on the board we left it up to you - just in case you want to do something different than what the board does with it.
Related Articles
Related Articles
Text Builder
Text Builder is a Column Magic feature that allows you to build the value of a column from the values of other columns. Supported Output Columns You are able to build and write a text pattern to the following column types: Item name Text Column Long ...
Evaluate Subitem Expression to Column
Evaluate Expression is not a spreadsheet formula function, and does not use the syntax of monday.com formulas. It is meant for mathematical expressions. Evaluates a MathJS expression and stores the result in the selected column. The trigger column ...
Write Text Pattern to Column / Name
Action ...write text pattern to column ...write text pattern to item name Templates When item created... When status changes to something... When column changes... When button clicked... Use actions in the custom automation builder to support ...
Column Magic Automations
Column Magic is a feature of automations that provides the individual automations in the app that are not part of a suite of templates. Automations Evaluate Expression to Column Push Date Keeping Time Set Date from Date using Number Expand Team to ...
Write Text Patterns to Link
See Write Text Patterns to Column for the basic of using a Text Builder action. These advanced actions allow you to create Actions ...write URL Pattern and text pattern to link column Templates When button clicked... When status changes to ...