Skip to content
English
  • There are no suggestions because the search field is empty.

Formula properties

Formula properties calculate a read-only value from other properties of the element.

A formula property calculates its value from other properties of the element, the way a spreadsheet formula calculates a cell from other cells. Use it for a budget variance, a score, or a label that changes with a threshold. ITONICS calculates the value, so it's read-only wherever it appears.

How a formula works

You write the formula once, when you create or edit the property, and every element of the element type carries its result. A formula refers to other properties by name in curly braces, such as {Budget Planned}. It can calculate with them, compare them, and use functions such as IF.

Parentheses set the order of a calculation, and a function can be the argument of another function. The arguments of a function are separated by semicolons, and text is written in double quotes:

Formula

IF({Forecast at Completion} > {Budget Planned}; "Over budget"; "On track")
Edit property panel of a formula property with the Formula and Formatting tabs and an IF formula that compares Forecast at Completion with Budget Planned

When you leave the editor, ITONICS checks the formula and explains any part it can't use. A formula can't refer to itself, not even through another formula.

Write formulas with Prism

If Prism is turned on, you can describe what the formula should calculate instead of writing it. Enter your request in the Ask Prism… field of the formula editor and click Create formula.

To change an existing formula, click Edit with Prism: Prism shows the Current formula next to the Suggested formula, and you click Accept or Reject. For a formula ITONICS can't use, Prism offers a Suggested fix. To type the formula yourself, click Or write from scratch.

While you type, the editor highlights property names. A valid formula is previewed with the values of a real element, and an invalid part is underlined.

Result types and formatting

A formula returns a number, a date, or text. The result type isn't a setting: it follows from what the formula calculates. Every branch of a formula must return the same type, so IF({Budget} > 100000; 1; "None") isn't valid.

Once the property is saved, its result type is fixed. To calculate something of another type, create another formula property.

For a number, the formatting settings decide whether it shows as a number, a currency, or a percentage, with its decimal places and thousands separator. Dates and text have no formatting options.

Properties a formula can use

A formula always uses the readable value of a property, such as an option label or a user's name. A property with several values becomes a list, which COUNT, ARRAYCONTAINS, and ARRAYELEMENT work with. In a text result, the values of a list are joined with commas.

Properties a formula can use
PropertyUsed asValue
TitleTextThe element's title
SummaryTextThe summary as plain text
StatusTextThe status label
TagsText or listThe tag names
Site sourceTextThe source label
Workflow NodeTextThe name of the node the element is in
Workflow ProcessTextThe name of the process the element runs through
Date Created, Date UpdatedDateThe date
Created By, Updated ByTextThe user's name
Text, rich textTextThe text, without formatting
Number, ratingNumberThe value
Aggregated ratingNumberThe aggregated score shown on the element
DateDateThe date
HyperlinkTextThe URL
DropdownText or listThe labels of the selected options
Hierarchical dropdownText or listThe labels of the selected options
UserText or listThe names of the selected users

Attachments, relations, and the header image can't be used in a formula. To bring in values from related elements, use a rollup property.

Operators

Operators calculate with numbers, join text, and compare values. A comparison returns true or false, for example as the condition of IF.

Formula operators
OperatorForWhat it doesExample
&TextJoins text values, like CONCAT.{Title} & " (draft)"
+NumberAdds two numbers.{Budget} + 200
-NumberSubtracts one number from another.{Budget} - 200
*NumberMultiplies two numbers.{Budget} * 2
/NumberDivides one number by another.{Budget} / 2
>ComparisonGreater than{Progress} > 50
<ComparisonLess than{Progress} < 50
>=ComparisonGreater than or equal to{Progress} >= 50
<=ComparisonLess than or equal to{Progress} <= 50
=ComparisonEqual to{Status} = "Approved"
<>ComparisonNot equal to{Status} <> "Approved"

Functions

Optional arguments are shown in square brackets.

Formula functions
FunctionReturnsSyntax
ABSThe absolute value of a number.ABS(value), for example ABS(-12), which returns 12.
ANDTrue if all arguments are true.AND(logical1; [logical2; ...]), for example AND({Budget} > 0; {Status} = "Approved").
ARRAYCONTAINSTrue if a list contains all the given values.ARRAYCONTAINS(array; [...value]), for example ARRAYCONTAINS({Program}; "Incubator").
ARRAYELEMENTThe value at a given position of a list.ARRAYELEMENT(array; index), for example ARRAYELEMENT({Program}; 1), which returns the first value.
AVERAGEThe average of a set of numbers.AVERAGE(number1; [number2; ...])
CEILINGA number rounded up to the next whole number.CEILING(value)
CONCATAll arguments joined into one text value.CONCAT(value; [value2; ...]), for example CONCAT({Title}; " - "; {Status}).
CONTAINSTrue if the first value contains the second.CONTAINS(value; value2)
COUNTThe number of values in a list.COUNT(value1; [value2; ...]), for example COUNT({Program}).
DATEA date from a year, month, and day.DATE(year; month; day)
DATEDIFThe number of days, months, or years between two dates.DATEDIF(start_date; end_date; unit), for example DATEDIF({Date Created}; {Date Updated}; "D"), which returns the days in between.
EDATEThe date a number of months before or after a date.EDATE(start_date; months)
EOMONTHThe last day of the month a number of months before or after a date.EOMONTH(start_date; months)
EVENA number rounded up to the next even whole number.EVEN(value)
FLOORA number rounded down to the next whole number.FLOOR(value)
IFThe second argument if the condition is true, otherwise the third.IF(logical_expression; value_if_true; value_if_false), for example IF({Budget} > 50000; "Major"; "Minor").
LENThe length of a text value.LEN(text)
LOWERA text value in lowercase.LOWER(text)
MAXThe largest number of a list.MAX(value1; [value2; ...])
MEDIANThe median of a list of numbers.MEDIAN(value1; [value2; ...])
MINThe smallest number of a list.MIN(value1; [value2; ...])
MODThe remainder of a division.MOD(dividend; divisor)
MONTHThe month of a date, as a number.MONTH(date)
NETWORKDAYSThe number of working days between two dates.NETWORKDAYS(start_date; end_date)
NOTThe opposite of a logical value.NOT(logical_expression), for example NOT(4 <> 4), which returns true.
ODDA number rounded up to the next odd whole number.ODD(value)
ORTrue if one or more arguments are true.OR(logical1; [logical2; ...])
POWERA number raised to a power.POWER(base; exponent)
REPLACEA text value with part of it replaced.REPLACE(text; stringToReplace; newString)
ROUNDA number rounded to the nearest whole number.ROUND(value)
SQRTThe positive square root of a positive number.SQRT(value)
TODAYThe current date.TODAY(), for example DATEDIF(TODAY(); {End Date}; "D"), which returns the days left until the end date.
TRIMA text value without leading, trailing, and repeated spaces.TRIM(text)
TRUNCA number shortened to the given places, without rounding.TRUNC(value; [places])
UPPERA text value in uppercase.UPPER(text)
WEEKDAYThe day of the week of a date, as a number.WEEKDAY(date)
WEEKNUMThe week of the year of a date, as a number.WEEKNUM(date)
WORKDAYThe date a number of working days after a date.WORKDAY(start_date; num_days), for example WORKDAY({Date Created}; 2).
XORTrue if exactly one argument is true.XOR(logical1; [logical2; ...])
YEARThe year of a date.YEAR(date)

Where formula values appear

Formula values show on the element's details page and in table views. You can use them to filter, sort, and aggregate, for row colors, widgets, board views, workflow criteria, and exports. They aren't available in radar, matrix, and network graph views, or in forms on sites.

When a formula can't be calculated

A valid formula can still fail for a single element, for example when a property it uses is empty or a division comes out as a division by zero. The element then shows an alert instead of the value, with the reason when you hover over it. All other elements keep their results.