Manipulate data in your workflows with advanced calculation functions
Basic Math: SUM, AVERAGE, COUNT
Text Operations: CONCAT, UPPER, LOWER
Date Operations: NOW, DATEDIF, DATEVALUE
Conditional Logic: IF, AND, OR
AND - All conditions must be true
AND(condition1, condition2, ...)
Business Example:condition1, condition2, ...
: Logical expressions that evaluate to TRUE/FALSEOR - At least one condition must be true
OR(condition1, condition2, ...)
Business Example:condition1, condition2, ...
: Logical expressions that evaluate to TRUE/FALSEIF - Conditional logic
IF(condition, value_if_true, value_if_false)
Business Example:condition
: Logical expressionvalue_if_true
: Value returned when condition is TRUEvalue_if_false
: Value returned when condition is FALSESUM - Add numbers from related records
AVERAGE - Calculate mean value
AVERAGE(related_field)
Business Example:related_field
: Field from related records to averageCOUNT - Count related records
COUNTIF - Count records meeting criteria
COUNTIF(related_field, criterion)
Business Example:related_field
: Field from related records to countcriterion
: Condition to meet (supports comparison operators)SUM(IF(RELATED."Field" = 'Paid', 1, 0))
COUNTUNIQUE - Count unique values
COUNTUNIQUE(related_field)
Business Example:related_field
: Field from related records to count unique valuesMAX - Find maximum value
MAX(value1, value2, ...)
Business Example:value1, value2, ...
: Values to compareMAX_AGGREGATE - Find maximum in related field
MIN - Find minimum value
MIN(value1, value2, ...)
Business Example:value1, value2, ...
: Values to compareMIN_AGGREGATE - Find minimum in related field
ROUND - Round numbers
ROUND(number, [decimal_places])
Business Example:number
: Number to rounddecimal_places
: [OPTIONAL] Number of decimal places (default: 0)STDEV - Calculate standard deviation
STDEV(related_field)
Business Example:related_field
: Field from related records to calculate standard deviationSUMIF - Sum values meeting criteria
SUMIF(related_field, criterion)
Business Example:related_field
: Field from related records to sumcriterion
: Condition values must meetNOW - Current date and time
NOW()
Business Example:DATE - Create date from components
DATE(year, month, day)
Business Example:year
: Four-digit yearmonth
: Month (1-12)day
: Day of month (1-31)DATETIME - Create datetime from components
DATETIME(year, month, day, hour, minute, second)
Business Example:year
: Four-digit yearmonth
: Month (1-12)day
: Day of month (1-31)hour
: Hour (0-23)minute
: Minute (0-59)second
: Second (0-59)DATEDIF - Calculate date differences
DATEDIF(start_date, end_date, unit)
Business Example:start_date
: Beginning dateend_date
: End dateunit
: ‘Y’ for years, ‘M’ for months, ‘D’ for daysDATETIME_TRUNC - Truncate datetime
DATETIME_TRUNC(datetime, unit)
Business Example:datetime
: Datetime to truncateunit
: YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECONDDATEVALUE - Convert text to date
DATEVALUE(text_date)
Business Example:text_date
: Text representation of a dateDAY - Extract day from date
DAY(date)
Business Example:date
: Date to extract day fromMONTH - Extract month from date
MONTH(date)
Business Example:date
: Date to extract month fromYEAR - Extract year from date
YEAR(date)
Business Example:date
: Date to extract year fromHOUR - Extract hour from datetime
HOUR(datetime)
Business Example:datetime
: Datetime to extract hour fromMINUTE - Extract minute from datetime
MINUTE(datetime)
Business Example:datetime
: Datetime to extract minute fromSECOND - Extract second from datetime
SECOND(datetime)
Business Example:datetime
: Datetime to extract second fromWEEKDAY - Get day of week
WEEKDAY(date, [type])
Business Example:date
: Date to get weekday fromtype
: [OPTIONAL] 1=Sun-Sat (1-7), 2=Mon-Sun (1-7), 3=Mon-Sun (0-6)CONCAT - Join text together
CONCAT(text1, text2, ...)
Business Example:text1, text2, ...
: Text values to join togetherUPPER - Convert to uppercase
UPPER(text)
Business Example:text
: Text to convert to uppercaseLOWER - Convert to lowercase
LOWER(text)
Business Example:text
: Text to convert to lowercaseLEFT - Extract from start of text
LEFT(text, number_of_characters)
Business Example:text
: String to extract fromnumber_of_characters
: Number of characters to extractRIGHT - Extract from end of text
RIGHT(text, number_of_characters)
Business Example:text
: String to extract fromnumber_of_characters
: Number of characters to extractMID - Extract from middle of text
MID(text, start_position, number_of_characters)
Business Example:text
: String to extract fromstart_position
: Starting position (1-based)number_of_characters
: Number of characters to extractFIND - Find text position (case-sensitive)
FIND(search_text, text_to_search, [start_position])
Business Example:search_text
: Text to findtext_to_search
: Text to search withinstart_position
: [OPTIONAL] Starting position for searchSEARCH - Find text position (case-insensitive)
SEARCH(search_text, text_to_search, [start_position])
Business Example:search_text
: Text to findtext_to_search
: Text to search withinstart_position
: [OPTIONAL] Starting position for searchSUBSTITUTE - Replace text
SUBSTITUTE(text, old_text, new_text)
Business Example:text
: Original textold_text
: Text to replacenew_text
: Replacement textTRIM - Remove extra spaces
TRIM(text)
Business Example:text
: Text to trimLEN - Get text length
LEN(text)
Business Example:text
: Text to measureSTRING_AGG - Concatenate related values
STRING_AGG_UNIQUE - Concatenate unique values
STRING_AGG_UNIQUE(related_field, delimiter)
Business Example:related_field
: Field from related records to concatenatedelimiter
: Text to put between each valueSPLIT - Split text into array
SPLIT(text, delimiter)
Business Example:text
: String to splitdelimiter
: Character or string to split onTEXT - Convert to text
TEXT(value)
Business Example:value
: Number or date to convertVALUE - Convert text to number
VALUE(text)
Business Example:text
: Text to convert to numberREP - Repeat text
REP(text, number_of_times)
Business Example:text
: String to repeatnumber_of_times
: Number of repetitionsREGEXEXTRACT - Extract with regex
REGEXEXTRACT(text, pattern)
Business Example:text
: Text to extract frompattern
: Regular expression patternREGEXMATCH - Test regex pattern
REGEXMATCH(text, pattern)
Business Example:text
: Text to testpattern
: Regular expression patternREGEXREPLACE - Replace with regex
REGEXREPLACE(text, pattern, replacement, [case_insensitive])
Business Example:text
: Text to modifypattern
: Regular expression patternreplacement
: Replacement textcase_insensitive
: [OPTIONAL] TRUE for case-insensitive matchingJSON_ESCAPE - Escape JSON string
JSON_ESCAPE(text)
Business Example:text
: Text to escapeJSON_UNESCAPE - Unescape JSON string
JSON_UNESCAPE(text)
Business Example:text
: Text to unescapePOWER - Raise to power
POWER(base, exponent)
Business Example:base
: Base numberexponent
: Power to raise toSQRT - Square root
SQRT(number)
Business Example:number
: Number to find square root ofTRUE - Boolean TRUE
TRUE()
Business Example:FALSE - Boolean FALSE
FALSE()
Business Example:BLANK - Return blank value
BLANK()
Business Example:ISBLANK - Test if blank
ISBLANK(value)
Business Example:value
: Value to test for blanknessUUID - Generate unique ID
UUID()
Business Example:Common Error: Blank Results
Common Error: Function Not Working with Current Record
Common Error: Date Calculation Issues
DATEVALUE()
to convert text to proper datesCommon Error: Text Function Confusion
Common Error: Field Reference Issues
Performance Issues