Welcome to the Formula Language Reference! This documentation is automatically generated from the compiler metadata to ensure accuracy and completeness.
- Functions by Category
- All Functions A-Z
- Data Types - Complete type reference
- Operators
ROUND(number, decimals)- Rounds a number to specified decimal placesABS(number)- Returns the absolute value of a numberCEILING(number)- Rounds a number up to the nearest integerFLOOR(number)- Rounds a number down to the nearest integerPOWER(base, exponent)- Raises a number to a powerSQRT(value)- Returns the square root of a numberLOG(value)- Returns the natural logarithm of a numberLOG10(value)- Returns the base-10 logarithm of a numberEXP(value)- Returns e raised to the power of a numberSIN(angle)- Returns the sine of an angle in radiansCOS(angle)- Returns the cosine of an angle in radiansTAN(angle)- Returns the tangent of an angle in radiansRANDOM()- Returns a random number between 0 and 1MIN(num1, num2)- Returns the minimum of two numbersMAX(num1, num2)- Returns the maximum of two numbersMOD(dividend, divisor)- Returns the remainder of divisionSIGN(value)- Returns the sign of a number (-1, 0, or 1)
LEN(requires string argument)- Returns the length of a stringUPPER(requires string argument)- Converts a string to uppercaseLOWER(requires string argument)- Converts a string to lowercaseTRIM(requires string argument)- Removes whitespace from both ends of a stringLEFT(first argument, second argument)- Returns the leftmost characters from a stringRIGHT(first argument, numChars)- Returns the rightmost characters from a stringMID(first argument, start, length)- Returns characters from the middle of a stringSUBSTITUTE(first argument, second argument, third argument)- Replaces occurrences of a substring with another stringCONTAINS(text, second argument)- Checks if a string contains a substringSTARTS_WITH(text, prefix)- Checks if a string starts with a substringENDS_WITH(text, suffix)- Checks if a string ends with a substring
NOW()- Returns the current date and timeTODAY()- Returns the current date (without time)YEAR(date)- Extracts the year from a dateMONTH(date)- Extracts the month from a date (1-12)DAY(date)- Extracts the day from a date (1-31)HOUR(date)- Extracts the hour from a date (0-23)MINUTE(date)- Extracts the minute from a date (0-59)SECOND(date)- Extracts the second from a date (0-59)FORMAT_DATE(date, format)- Formats a date as a stringWEEKDAY(date)- Returns the day of the week as a number (1=Sunday)ADDMONTHS(date, months)- Adds months to a dateADDDAYS(date, days)- Adds days to a dateDATEDIF(date1, date2, unit)- Returns the difference between two dates in specified units
ME()- Returns the current user identifierSTRING(value)- Converts a value to a stringDATE(dateString)- Creates a date from a string literalIF(condition, trueValue, falseValue)- Returns one value if condition is true, another if falseEVAL(relationshipRef)- Evaluates an expression from another table
AND(argument...)- Returns true if all arguments are trueOR(argument...)- Returns true if any argument is trueNOT(requires boolean argument)- Returns the opposite of a boolean value
ISNULL(value)- Returns true if the value is nullISBLANK(value)- Returns true if the value is null or empty stringNULLVALUE(value, defaultValue)- Returns the first value if not null, otherwise returns the second valueCOALESCE(values...)- Returns the first non-null value from a list of expressions
COUNT(relationship, value)- Counts the number of non-null valuesSUM(relationship, value)- Sums numeric valuesAVG(relationship, value)- Calculates the average of numeric valuesMIN_AGG(relationship, value)- Finds the minimum valueMAX_AGG(relationship, value)- Finds the maximum valueSTRING_AGG(relationship, value, separator)- Concatenates string values with a separatorSTRING_AGG_DISTINCT(relationship, value, separator)- Concatenates unique string values with a separatorSUM_AGG(relationship, value)- Sums numeric valuesCOUNT_AGG(relationship, value)- Counts the number of non-null valuesAVG_AGG(relationship, value)- Calculates the average of numeric valuesAND_AGG(relationship, value)- Returns true if all boolean values are trueOR_AGG(relationship, value)- Returns true if any boolean value is true
ABS(number)- Returns the absolute value of a numberADDDAYS(date, days)- Adds days to a dateADDMONTHS(date, months)- Adds months to a dateAND(argument...)- Returns true if all arguments are trueAND_AGG(relationship, value)- Returns true if all boolean values are trueAVG(relationship, value)- Calculates the average of numeric valuesAVG_AGG(relationship, value)- Calculates the average of numeric valuesCEILING(number)- Rounds a number up to the nearest integer- [
COALESCE(values...)](./functions/Null Handling.md#coalesce) - Returns the first non-null value from a list of expressions CONTAINS(text, second argument)- Checks if a string contains a substringCOS(angle)- Returns the cosine of an angle in radiansCOUNT(relationship, value)- Counts the number of non-null valuesCOUNT_AGG(relationship, value)- Counts the number of non-null valuesDATE(dateString)- Creates a date from a string literalDATEDIF(date1, date2, unit)- Returns the difference between two dates in specified unitsDAY(date)- Extracts the day from a date (1-31)ENDS_WITH(text, suffix)- Checks if a string ends with a substringEVAL(relationshipRef)- Evaluates an expression from another tableEXP(value)- Returns e raised to the power of a numberFLOOR(number)- Rounds a number down to the nearest integerFORMAT_DATE(date, format)- Formats a date as a stringHOUR(date)- Extracts the hour from a date (0-23)IF(condition, trueValue, falseValue)- Returns one value if condition is true, another if false- [
ISBLANK(value)](./functions/Null Handling.md#isblank) - Returns true if the value is null or empty string - [
ISNULL(value)](./functions/Null Handling.md#isnull) - Returns true if the value is null LEFT(first argument, second argument)- Returns the leftmost characters from a stringLEN(requires string argument)- Returns the length of a stringLOG(value)- Returns the natural logarithm of a numberLOG10(value)- Returns the base-10 logarithm of a numberLOWER(requires string argument)- Converts a string to lowercaseMAX(num1, num2)- Returns the maximum of two numbersMAX_AGG(relationship, value)- Finds the maximum valueME()- Returns the current user identifierMID(first argument, start, length)- Returns characters from the middle of a stringMIN(num1, num2)- Returns the minimum of two numbersMINUTE(date)- Extracts the minute from a date (0-59)MIN_AGG(relationship, value)- Finds the minimum valueMOD(dividend, divisor)- Returns the remainder of divisionMONTH(date)- Extracts the month from a date (1-12)NOT(requires boolean argument)- Returns the opposite of a boolean valueNOW()- Returns the current date and time- [
NULLVALUE(value, defaultValue)](./functions/Null Handling.md#nullvalue) - Returns the first value if not null, otherwise returns the second value OR(argument...)- Returns true if any argument is trueOR_AGG(relationship, value)- Returns true if any boolean value is truePOWER(base, exponent)- Raises a number to a powerRANDOM()- Returns a random number between 0 and 1RIGHT(first argument, numChars)- Returns the rightmost characters from a stringROUND(number, decimals)- Rounds a number to specified decimal placesSECOND(date)- Extracts the second from a date (0-59)SIGN(value)- Returns the sign of a number (-1, 0, or 1)SIN(angle)- Returns the sine of an angle in radiansSQRT(value)- Returns the square root of a numberSTARTS_WITH(text, prefix)- Checks if a string starts with a substringSTRING(value)- Converts a value to a stringSTRING_AGG(relationship, value, separator)- Concatenates string values with a separatorSTRING_AGG_DISTINCT(relationship, value, separator)- Concatenates unique string values with a separatorSUBSTITUTE(first argument, second argument, third argument)- Replaces occurrences of a substring with another stringSUM(relationship, value)- Sums numeric valuesSUM_AGG(relationship, value)- Sums numeric valuesTAN(angle)- Returns the tangent of an angle in radiansTODAY()- Returns the current date (without time)TRIM(requires string argument)- Removes whitespace from both ends of a stringUPPER(requires string argument)- Converts a string to uppercaseWEEKDAY(date)- Returns the day of the week as a number (1=Sunday)YEAR(date)- Extracts the year from a date
The formula language supports several data types including basic types (string, number, boolean, date, null) and special types (expression, inverse_relationship).
📖 Complete Data Types Reference - Detailed information about all types, their operations, conversions, and compatibility rules.
+- Addition (numbers) or date arithmetic-- Subtraction (numbers) or date arithmetic*- Multiplication (numbers)/- Division (numbers)
&- String concatenation (both sides must be strings)
=- Equal to!= or <>- Not equal to>- Greater than>=- Greater than or equal to<- Less than<=- Less than or equal to
Logical operations are implemented as functions rather than operators:
AND(condition1, condition2, ...)- All conditions must be trueOR(condition1, condition2, ...)- Any condition must be trueNOT(condition)- Negates the condition
Documentation generated on 2025-06-27T07:39:53.064Z