AdapTableQL Expression Functions
Summary
- This page lists every Expression Function shipped with AdapTableQL
AdapTable provides well over 150 Expression Functions to enable a very rich and powerful querying experience.
Hint
These Expression Functions can be extended by developer-provided Custom Expression Functions
This page lists every Function provided by AdapTable together with information about how it can be used.
Note
The info is drawn dynamically from the Function's meta data which also appears in the live Expression Editor
For ease of use we have divided up the Functions into 2 sets:
- Type:
Standard,AggregationorObservable - Categories within that Type (e.g. Numeric in
Standardor Cumulative inAggregation)
Hint
Observable Functions are value-returning history readers (e.g. CHANGE_COUNT{[price], WITHIN(5m)}). They use curly braces like Aggregations, and can appear in ordinary Expressions — including Calculated Columns (Type: Observable).
Showing 110 of 110 functions
EQ
Equals=ComparisonStandardboolean
EQ
Equals=ComparisonStandardbooleanReturns true if the two values are equal. Also available as the = shortcut (e.g. [price] = 5). Dates compare exact instants — use IS_SAME_DAY for calendar-day equality.
value = valueEQ(a: value, b: value)
[numCol] = 5EQ([numCol], 5)[stringCol] = "open"[boolCol] = TRUE[dateCol] = DATE(2024, 1, 1)
number, numberdate, datetext, textboolean, booleanGT
Greater Than>ComparisonStandardboolean
GT
Greater Than>ComparisonStandardbooleanReturns true if the first value is greater than the second. Also available as the > shortcut (e.g. [price] > 5).
number > numberdate > dateGT(a: number, b: number)GT(a: date, b: date)
[numCol] > 5GT([numCol], 5)[dateCol] > CURRENT_DAY()
number, numberdate, dateGTE
Greater Than or Equals>=ComparisonStandardboolean
GTE
Greater Than or Equals>=ComparisonStandardbooleanReturns true if the first value is greater than or equal to the second. Also available as the >= shortcut (e.g. [price] >= 5).
number >= numberdate >= dateGTE(a: number, b: number)GTE(a: date, b: date)
[numCol] >= 5GTE([numCol], 5)[dateCol] >= CURRENT_DAY()
number, numberdate, dateIN
In#[ComparisonStandardboolean
IN
In#[ComparisonStandardbooleanReturns true if the value is in the list. Also matches any element of an array column, and group paths for the auto-group column.
value IN (value, value, ...)
[numCol] IN (5, 10, 15)[stringCol] IN ("a", "b")[dateCol] IN (DATE("2021-02-28"), DATE("2025-08-02"))[tags] IN ("a", "b")[ag-Grid-AutoColumn] IN ("United States", "Australia")
number, number[]date, date[]text, text[]number[], number[]text[], text[]LT
Less Than<ComparisonStandardboolean
LT
Less Than<ComparisonStandardbooleanReturns true if the first value is less than the second. Also available as the < shortcut (e.g. [price] < 5).
number < numberdate < dateLT(a: number, b: number)LT(a: date, b: date)
[numCol] < 5LT([numCol], 5)[dateCol] < CURRENT_DAY()
number, numberdate, dateLTE
Less Than or Equals<=ComparisonStandardboolean
LTE
Less Than or Equals<=ComparisonStandardbooleanReturns true if the first value is less than or equal to the second. Also available as the <= shortcut (e.g. [price] <= 5).
number <= numberdate <= dateLTE(a: number, b: number)LTE(a: date, b: date)
[numCol] <= 5LTE([numCol], 5)[dateCol] <= CURRENT_DAY()
number, numberdate, dateNEQ
Not Equals!=ComparisonStandardboolean
NEQ
Not Equals!=ComparisonStandardbooleanReturns true if the two values are not equal. Also available as the != shortcut (e.g. [price] != 5).
value != valueNEQ(a: value, b: value)
[numCol] != 5NEQ([numCol], 5)[stringCol] != "closed"[boolCol] != FALSE
number, numberdate, datetext, textboolean, booleanNOT_IN
Not InComparisonStandardboolean
NOT_IN
Not InComparisonStandardbooleanReturns true if the value is NOT in the list. The inverse of IN; also matches array columns and group paths for the auto-group column.
value NOT_IN (value, value, ...)
[numCol] NOT_IN (5, 10, 15)[stringCol] NOT_IN ("a", "b")[dateCol] NOT_IN (DATE("2021-02-28"), DATE("2025-08-02"))[tags] NOT_IN ("a", "b")
number, number[]date, date[]text, text[]number[], number[]text[], text[]AND
AndLogicalStandardboolean
AND
AndLogicalStandardbooleanReturns true if both conditions are true. Also available as the AND operator (e.g. [price] > 5 AND [price] < 10).
condition AND conditionAND(a: boolean, b: boolean)
[numCol] > 5 AND [numCol] < 10AND(IS_BLANK([stringCol]), [boolCol])
boolean, booleanCASE
CaseLogicalStandardany
CASE
CaseLogicalStandardanyReturns a value by matching WHEN / THEN branches (optional ELSE). Two forms: CASE value WHEN … THEN … END (match by equality), or CASE WHEN condition THEN … END (first true condition). Prefer IF / ternary for a single condition.
CASE value WHEN match THEN result … [ELSE result] ENDCASE WHEN condition THEN result … [ELSE result] END
CASE [stringCol] WHEN 'Saturday' THEN 'weekend' WHEN 'Sunday' THEN 'weekend' ELSE 'workday' ENDCASE WHEN [numCol] < 10 THEN 'low' WHEN [numCol] < 50 THEN 'medium' ELSE 'high' END
FALSE
FalseLogicalStandardboolean
FALSE
FalseLogicalStandardbooleanReturns the boolean value false (written as the FALSE literal).
FALSE
[boolCol] = FALSEIS_BLANK([stringCol]) ? FALSE : TRUE
IF
IfLogicalStandardany
IF
IfLogicalStandardanyReturns one value if the condition is true, otherwise another. Also available as the ternary shortcut (e.g. [price] > 10 ? "BIG" : "SMALL").
condition ? trueValue : falseValueIF(condition: boolean, trueValue: any, falseValue: any)
[numCol] > 10 ? "BIG" : "SMALL"IF(IS_BLANK([stringCol]), "n/a", [stringCol])
boolean, any, anyIFERROR
If ErrorLogicalStandardany
IFERROR
If ErrorLogicalStandardanyReturns the first expression’s value, or the fallback if evaluation throws an error (Excel IFERROR). Prefer IFNA when you only want to catch N/A.
IFERROR(value: any, fallback: any)
IFERROR([numCol] / [numCol], 0)IFERROR(NA(), "missing")
any, anyIFNA
If N/ALogicalStandardany
IFNA
If N/ALogicalStandardanyReturns the first expression’s value, or the fallback if it is N/A (Excel IFNA). Other errors are not caught — use IFERROR for those. Null/blank are not N/A (use COALESCE / IS_BLANK).
IFNA(value: any, fallback: any)
IFNA(NA(), 0)IFNA(QUERY("lookup"), "n/a")
any, anyNA
N/ALogicalStandardany
NA
N/ALogicalStandardanyReturns an N/A error (Excel NA). Catch with IFNA or IFERROR. Use NULL() for a plain null value.
NA()
IFNA(NA(), 0)IFERROR(NA(), "missing")
NOT
Not!LogicalStandardboolean
NOT
Not!LogicalStandardbooleanReturns the negation of a condition. Also available as the ! shortcut (e.g. !([price] > 5)).
!conditionNOT(a: boolean)
!([numCol] > 5)NOT(IS_BLANK([stringCol]))
booleanNULL
NullLogicalStandardnull
NULL
NullLogicalStandardnullReturns the null value. Prefer NA() when you need an Excel-style N/A error for IFNA / IFERROR.
NULL()
[stringCol] = "accepted" ? 100 : NULL()COALESCE([numCol], NULL(), 0)
OR
OrLogicalStandardboolean
OR
OrLogicalStandardbooleanReturns true if either condition is true. Also available as the OR operator (e.g. [price] > 5 OR [price] < 0).
condition OR conditionOR(a: boolean, b: boolean)
[numCol] > 5 OR [numCol] < 0OR(IS_TODAY([dateCol]), IS_TOMORROW([dateCol]))
boolean, booleanTRUE
TrueLogicalStandardboolean
TRUE
TrueLogicalStandardbooleanReturns the boolean value true (written as the TRUE literal).
TRUE
[boolCol] = TRUE[stringCol] = "open" ? TRUE : FALSE
ABS
AbsNumericStandardnumber
ABS
AbsNumericStandardnumberReturns the absolute value of a given number.
ABS(a: number)
ABS([numCol])ABS(-12.5)
numberAVG
AvgNumericCumulativeStandardnumber
AVG
AvgNumericCumulativeStandardnumberReturns the average of one or more numbers.
AVG(number, number, ...number)
AVG([numCol], 5)AVG(10, 20, 30)
number[]CEILING
CeilingNumericStandardnumber
CEILING
CeilingNumericStandardnumberReturns the smallest integer greater than or equal to the given number.
CEILING(a: number)
CEILING([numCol])CEILING(2.1)
numberDIV
Div/NumericStandardnumber
DIV
Div/NumericStandardnumberReturns the result of dividing two numbers. Also available as the / shortcut (e.g. [price] / 5).
number / numberDIV(a: number, b: number)
[numCol] / 5DIV([numCol], 5)
number, numberFLOOR
FloorNumericStandardnumber
FLOOR
FloorNumericStandardnumberReturns the largest integer less than or equal to the given number.
FLOOR(a: number)
FLOOR([numCol])FLOOR(2.9)
numberIS_NEGATIVE
NegativeNumericStandardboolean
IS_NEGATIVE
NegativeNumericStandardbooleanReturns true if the number is less than zero.
IS_NEGATIVE(a: number)
IS_NEGATIVE([numCol])IS_NEGATIVE($SCOPE)
numberIS_POSITIVE
PositiveNumericStandardboolean
IS_POSITIVE
PositiveNumericStandardbooleanReturns true if the number is greater than zero.
IS_POSITIVE(a: number)
IS_POSITIVE([numCol])IS_POSITIVE($SCOPE)
numberMAX
MaxNumericCumulativeStandardnumber
MAX
MaxNumericCumulativeStandardnumberReturns the highest of one or more numbers.
MAX(number, number, ...number)
MAX([numCol], 5)MAX(10, 20, 3)
number[]MIN
MinNumericCumulativeStandardnumber
MIN
MinNumericCumulativeStandardnumberReturns the smallest of one or more numbers.
MIN(number, number, ...number)
MIN([numCol], 5)MIN(10, 20, 3)
number[]MOD
Mod%NumericStandardnumber
MOD
Mod%NumericStandardnumberReturns remainder after dividing two numbers. Also available as % shortcut (e.g. [price] % 5).
number % numberMOD(a: number, b: number)
[numCol] % 5MOD([numCol], 5)
number, numberPOW
Pow^NumericStandardnumber
POW
Pow^NumericStandardnumberReturns the first number raised to the power of the second. Also available as the ^ shortcut (e.g. [price] ^ 2).
number ^ numberPOW(a: number, b: number)
[numCol] ^ 2POW([numCol], 2)
number, numberPRODUCT
Product*NumericStandardnumber
PRODUCT
Product*NumericStandardnumberReturns the product of one or more numbers. Also available as the * shortcut (e.g. [price] * 5).
number * numberPRODUCT(number, number, ...number)
[numCol] * 5PRODUCT([numCol], 5)PRODUCT(2, 3, 4)
number[]ROUND
RoundNumericStandardnumber
ROUND
RoundNumericStandardnumberReturns the number rounded to the given decimal places (default 0). Negative digits round left of the decimal (Excel ROUND).
ROUND(a: number)ROUND(a: number, digits: number)
ROUND([numCol])ROUND([numCol], 2)ROUND([numCol], -3)
numbernumber, numberSIGN
SignNumericStandardnumber
SIGN
SignNumericStandardnumberReturns the sign of a number as -1, 0, or 1 (Excel SIGN).
SIGN(a: number)
SIGN([numCol])SIGN(-12)
numberSQRT
Square RootNumericStandardnumber
SQRT
Square RootNumericStandardnumberReturns the square root of a non-negative number.
SQRT(a: number)
SQRT([numCol])SQRT(9)
numberSUB
Sub-NumericStandardnumber
SUB
Sub-NumericStandardnumberReturns the difference of two numbers. Also available as the - shortcut (e.g. [price] - 5).
number - numberSUB(a: number, b: number)
[numCol] - 5SUB([numCol], 5)
number, numberSUM
Sum+NumericCumulativeStandardnumber
SUM
Sum+NumericCumulativeStandardnumberReturns the sum of one or more numbers. Also available as the + shortcut (e.g. [price] + 5).
number + numberSUM(number, number, ...number)
[numCol] + 5SUM([numCol], 5)SUM(2, 4, 6)
number[]CONCAT
ConcatTextStandardstring
CONCAT
ConcatTextStandardstringReturns the concatenation of one or more text values with no separator (Excel CONCAT). Use TEXTJOIN when a delimiter is needed.
CONCAT(value1, value2, ...)
CONCAT([stringCol], [stringCol])CONCAT([stringCol], " - ", [stringCol])
text[]CONTAINS
ContainsTextStandardboolean
CONTAINS
ContainsTextStandardbooleanReturns true if the first text contains the second. Also available as the CONTAINS operator (e.g. [name] CONTAINS "S").
value1 CONTAINS value2CONTAINS(a: text, b: text)
[stringCol] CONTAINS "S"CONTAINS([stringCol], "S")
text, textENDS_WITH
Ends WithTextStandardboolean
ENDS_WITH
Ends WithTextStandardbooleanReturns true if the first text ends with the second. Also available as the ENDS_WITH operator (e.g. [name] ENDS_WITH "S").
value1 ENDS_WITH value2ENDS_WITH(a: text, b: text)
[stringCol] ENDS_WITH "S"ENDS_WITH([stringCol], "S")
text, textLEFT
LeftTextStandardstring
LEFT
LeftTextStandardstringReturns the first n characters of a text value (Excel LEFT).
LEFT(text: text, count: number)
LEFT([stringCol], 3)LEFT("ABCDEF", 2)
text, numberLEN
LenTextStandardnumber
LEN
LenTextStandardnumberReturns the length of a text value.
LEN(a: text)
LEN([stringCol])LEN("hello")
textLOWER
LowerTextStandardstring
LOWER
LowerTextStandardstringReturns the text converted to lower case.
LOWER(a: text)
LOWER([stringCol])LOWER("Hello")
textMID
MidTextStandardstring
MID
MidTextStandardstringReturns n characters starting at a 1-based position (Excel MID).
MID(text: text, start: number, count: number)
MID([stringCol], 2, 3)MID("ABCDEF", 2, 3)
text, number, numberNOT_CONTAINS
Not ContainsTextStandardboolean
NOT_CONTAINS
Not ContainsTextStandardbooleanReturns true if the first text does NOT contain the second. Also available as the NOT_CONTAINS operator (e.g. [name] NOT_CONTAINS "S").
value1 NOT_CONTAINS value2NOT_CONTAINS(a: text, b: text)
[stringCol] NOT_CONTAINS "S"NOT_CONTAINS([stringCol], "S")
text, textREGEX
RegexTextStandardboolean
REGEX
RegexTextStandardbooleanReturns true if the text matches the regular expression pattern.
REGEX(a: text, b: pattern)
REGEX([stringCol], "[A-Z]+")
text, textREPLACE
ReplaceTextStandardstring
REPLACE
ReplaceTextStandardstringReturns the text with all literal occurrences of a substring replaced (case sensitivity follows text-comparison settings). Not Excel position-based REPLACE.
REPLACE(a: text, b: text, c: text)
REPLACE([stringCol], "GBP", "EUR")
text, text, textRIGHT
RightTextStandardstring
RIGHT
RightTextStandardstringReturns the last n characters of a text value (Excel RIGHT).
RIGHT(text: text, count: number)
RIGHT([stringCol], 3)RIGHT("ABCDEF", 2)
text, numberSTARTS_WITH
Starts WithTextStandardboolean
STARTS_WITH
Starts WithTextStandardbooleanReturns true if the first text starts with the second. Also available as the STARTS_WITH operator (e.g. [name] STARTS_WITH "S").
value1 STARTS_WITH value2STARTS_WITH(a: text, b: text)
[stringCol] STARTS_WITH "S"STARTS_WITH([stringCol], "S")
text, textSUB_STRING
Sub StringTextStandardstring
SUB_STRING
Sub StringTextStandardstringReturns characters between two 0-based indices (JavaScript substring). Use MID for Excel-style 1-based extraction.
SUB_STRING(a: text, b: number, c: number)
SUB_STRING([stringCol], 1, 5)
text, number, numberTEXTJOIN
Text JoinTextStandardstring
TEXTJOIN
Text JoinTextStandardstringReturns text values joined by a delimiter; optionally skips empties (Excel TEXTJOIN). Prefer over CONCAT when inserting separators.
TEXTJOIN(delimiter: text, ignoreEmpty: boolean, text1: text, ...text)
TEXTJOIN(", ", TRUE, [stringCol], [stringCol])TEXTJOIN("-", FALSE, "A", "", "B")
text, boolean, text[]TRIM
TrimTextStandardstring
TRIM
TrimTextStandardstringReturns the text with leading and trailing whitespace removed.
TRIM(text: text)
TRIM([stringCol])TRIM(" hello ")
textUPPER
UpperTextStandardstring
UPPER
UpperTextStandardstringReturns the text converted to upper case.
UPPER(a: text)
UPPER([stringCol])UPPER("hello")
textADD_DAYS
Add DaysDateStandarddate
ADD_DAYS
Add DaysDateStandarddateReturns the date plus the given number of calendar days (time of day preserved). Prefer WORKDAY when skipping weekends and holidays.
ADD_DAYS(input: date, days: number)
ADD_DAYS([dateCol], 5)ADD_DAYS(CURRENT_DAY(), 5)
date, numberADD_MONTHS
Add MonthsDateStandarddate
ADD_MONTHS
Add MonthsDateStandarddateReturns the date plus the given number of months (time of day preserved; short months clamp). Prefer EDATE for Excel-style month shifts at start of day.
ADD_MONTHS(input: date, months: number)
ADD_MONTHS([dateCol], 1)ADD_MONTHS(CURRENT_DAY(), 5)
date, numberADD_WEEKS
Add WeeksDateStandarddate
ADD_WEEKS
Add WeeksDateStandarddateReturns the date plus the given number of weeks (time of day preserved).
ADD_WEEKS(input: date, weeks: number)
ADD_WEEKS([dateCol], 2)ADD_WEEKS(CURRENT_DAY(), 5)
date, numberADD_YEARS
Add YearsDateStandarddate
ADD_YEARS
Add YearsDateStandarddateReturns the date plus the given number of years (time of day preserved).
ADD_YEARS(input: date, years: number)
ADD_YEARS([dateCol], 1)ADD_YEARS(CURRENT_DAY(), 5)
date, numberCURRENT_DAY
Current DayDateStandarddate
CURRENT_DAY
Current DayDateStandarddateReturns today's date at the start of the day (midnight). Prefer NOW when you need the current date and time.
CURRENT_DAY()
[dateCol] > CURRENT_DAY()CURRENT_DAY()
DATE
DateDateStandarddate
DATE
DateDateStandarddateReturns a date from an ISO-style text, or from year, month, and day numbers (month is 1-based, Excel DATE).
DATE(input: text)DATE(year: number, month: number, day: number)DATE("YYYYMMDD")DATE("YYYY-MM-DD")DATE("YYYY-MM-DD HH:MM:SS")
DATE(2021, 1, 1)DATE("20210101")DATE("2021-01-01")DATE("2021-01-01 10:10")
textnumber, number, numberDAY
Day of MonthDateStandardnumber
DAY
Day of MonthDateStandardnumberReturns the day of the month (1–31). Use WEEKDAY for day-of-week (1–7) and WEEK for week-of-year.
DAY(input: date)
DAY([dateCol])DAY([dateCol]) = DAY(CURRENT_DAY())
dateDIFF_DAYS
Diff DaysDateStandardnumber
DIFF_DAYS
Diff DaysDateStandardnumberReturns the number of calendar days from the second date to the first (a − b). Prefer NETWORKDAYS when counting working days inclusive of both ends.
DIFF_DAYS(a: date, b: date)
DIFF_DAYS([dateCol], CURRENT_DAY())
date, dateDIFF_MONTHS
Diff MonthsDateStandardnumber
DIFF_MONTHS
Diff MonthsDateStandardnumberReturns the number of whole months from the second date to the first (a − b).
DIFF_MONTHS(a: date, b: date)
DIFF_MONTHS([dateCol], CURRENT_DAY())
date, dateDIFF_WEEKS
Diff WeeksDateStandardnumber
DIFF_WEEKS
Diff WeeksDateStandardnumberReturns the number of whole weeks from the second date to the first (a − b).
DIFF_WEEKS(a: date, b: date)
DIFF_WEEKS([dateCol], CURRENT_DAY())
date, dateDIFF_YEARS
Diff YearsDateStandardnumber
DIFF_YEARS
Diff YearsDateStandardnumberReturns the number of whole years from the second date to the first (a − b).
DIFF_YEARS(a: date, b: date)
DIFF_YEARS([dateCol], CURRENT_DAY())
date, dateEDATE
EDateDateStandarddate
EDATE
EDateDateStandarddateReturns the date the given number of months before or after the start date, keeping the same day of month when possible (Excel EDATE; result at start of day). Prefer ADD_MONTHS when you need to preserve time of day.
EDATE(start: date, months: number)
EDATE([dateCol], 1)EDATE(CURRENT_DAY(), -3)
date, numberEND_OF_MONTH
End of MonthDateStandarddate
END_OF_MONTH
End of MonthDateStandarddateReturns the last day of the month containing the input date (equivalent to EOMONTH(d, 0)). Use EOMONTH(date, months) to offset by months first.
END_OF_MONTH(input: date)
END_OF_MONTH([dateCol])END_OF_MONTH(CURRENT_DAY())
dateEOMONTH
EOMonthDateStandarddate
EOMONTH
EOMonthDateStandarddateReturns the last day of the month the given number of months before or after the start date (Excel EOMONTH). END_OF_MONTH(d) is the last day of the containing month (equivalent to EOMONTH(d, 0)).
EOMONTH(start: date, months: number)
EOMONTH([dateCol], 0)EOMONTH(CURRENT_DAY(), 1)
date, numberIS_AFTER_TODAY
After TodayDateStandardboolean
IS_AFTER_TODAY
After TodayDateStandardbooleanReturns true if the calendar day is strictly after today. Prefer IS_FUTURE when comparing against the current instant (including later today).
IS_AFTER_TODAY(a: date)
IS_AFTER_TODAY([dateCol])
dateIS_BEFORE_TODAY
Before TodayDateStandardboolean
IS_BEFORE_TODAY
Before TodayDateStandardbooleanReturns true if the calendar day is strictly before today. Prefer IS_PAST when comparing against the current instant (including earlier today).
IS_BEFORE_TODAY(a: date)
IS_BEFORE_TODAY([dateCol])
dateIS_DIFFERENT_DAY
Different DayDateStandardboolean
IS_DIFFERENT_DAY
Different DayDateStandardbooleanReturns true if two dates fall on different calendar days (time ignored).
IS_DIFFERENT_DAY(a: date, b: date)
IS_DIFFERENT_DAY([dateCol], DATE(2026, 1, 1))IS_DIFFERENT_DAY([dateCol], CURRENT_DAY())
date, dateIS_FUTURE
In FutureDateStandardboolean
IS_FUTURE
In FutureDateStandardbooleanReturns true if the date/time is after the current instant. Prefer IS_AFTER_TODAY when comparing calendar days (later today is future but not after today).
IS_FUTURE(a: date)
IS_FUTURE([dateCol])
dateIS_HOLIDAY
HolidayDateStandardboolean
IS_HOLIDAY
HolidayDateStandardbooleanReturns true if the date is a configured holiday.
IS_HOLIDAY(a: date)
IS_HOLIDAY([dateCol])
dateIS_NEXT_WORKDAY
Next Work DayDateStandardboolean
IS_NEXT_WORKDAY
Next Work DayDateStandardbooleanReturns true if the date is the next working day after today.
IS_NEXT_WORKDAY(a: date)
IS_NEXT_WORKDAY([dateCol])
dateIS_PAST
In PastDateStandardboolean
IS_PAST
In PastDateStandardbooleanReturns true if the date/time is before the current instant. Prefer IS_BEFORE_TODAY when comparing calendar days (earlier today is past but not before today).
IS_PAST(a: date)
IS_PAST([dateCol])
dateIS_PREV_WORKDAY
Last Work DayDateStandardboolean
IS_PREV_WORKDAY
Last Work DayDateStandardbooleanReturns true if the date is the previous working day before today.
IS_PREV_WORKDAY(a: date)
IS_PREV_WORKDAY([dateCol])
dateIS_SAME_DAY
Same DayDateStandardboolean
IS_SAME_DAY
Same DayDateStandardbooleanReturns true if both dates fall on the same calendar day (time ignored).
IS_SAME_DAY(a: date, b: date)
IS_SAME_DAY([dateCol], DATE(2026, 1, 1))IS_SAME_DAY([dateCol], CURRENT_DAY())
date, dateIS_THIS_MONTH
This MonthDateStandardboolean
IS_THIS_MONTH
This MonthDateStandardbooleanReturns true if the date falls in the current month.
IS_THIS_MONTH(a: date)
IS_THIS_MONTH([dateCol])
dateIS_THIS_QUARTER
This QuarterDateStandardboolean
IS_THIS_QUARTER
This QuarterDateStandardbooleanReturns true if the date falls in the current quarter.
IS_THIS_QUARTER(a: date)
IS_THIS_QUARTER([dateCol])
dateIS_THIS_WEEK
This WeekDateStandardboolean
IS_THIS_WEEK
This WeekDateStandardbooleanReturns true if the date falls in the current week.
IS_THIS_WEEK(a: date)
IS_THIS_WEEK([dateCol])
dateIS_THIS_YEAR
This YearDateStandardboolean
IS_THIS_YEAR
This YearDateStandardbooleanReturns true if the date falls in the current year.
IS_THIS_YEAR(a: date)
IS_THIS_YEAR([dateCol])
dateIS_TODAY
TodayDateStandardboolean
IS_TODAY
TodayDateStandardbooleanReturns true if the date falls on today.
IS_TODAY(a: date)
IS_TODAY([dateCol])
dateIS_TOMORROW
TomorrowDateStandardboolean
IS_TOMORROW
TomorrowDateStandardbooleanReturns true if the date falls on tomorrow.
IS_TOMORROW(a: date)
IS_TOMORROW([dateCol])
dateIS_WORKDAY
Working DayDateStandardboolean
IS_WORKDAY
Working DayDateStandardbooleanReturns true if the date is a working day (weekends and configured holidays excluded).
IS_WORKDAY(a: date)
IS_WORKDAY([dateCol])
dateIS_YESTERDAY
YesterdayDateStandardboolean
IS_YESTERDAY
YesterdayDateStandardbooleanReturns true if the date falls on yesterday.
IS_YESTERDAY(a: date)
IS_YESTERDAY([dateCol])
dateMONTH
MonthDateStandardnumber
MONTH
MonthDateStandardnumberReturns the month as a number (1–12).
MONTH(input: date)
MONTH([dateCol])MONTH([dateCol]) = MONTH(CURRENT_DAY())
dateNETWORKDAYS
Network DaysDateStandardnumber
NETWORKDAYS
Network DaysDateStandardnumberReturns the count of working days between two dates, inclusive — weekends and configured holidays are skipped (Excel NETWORKDAYS; negative if start is after end). Prefer DIFF_DAYS for a plain calendar-day difference (a − b).
NETWORKDAYS(start: date, end: date)
NETWORKDAYS([dateCol], CURRENT_DAY())NETWORKDAYS(DATE(2026, 1, 1), DATE(2026, 1, 31))
date, dateNOW
NowDateStandarddate
NOW
NowDateStandarddateReturns the current date and time. Prefer CURRENT_DAY when you only need today's date at midnight.
NOW()
[dateCol] > NOW()NOW()
QUARTER
QuarterDateStandardnumber
QUARTER
QuarterDateStandardnumberReturns the calendar quarter as a number (1–4).
QUARTER(input: date)
QUARTER([dateCol])QUARTER([dateCol]) = QUARTER(CURRENT_DAY())
dateSTART_OF_DAY
Start of DayDateStandarddate
START_OF_DAY
Start of DayDateStandarddateReturns the input date truncated to the start of its calendar day.
START_OF_DAY(input: date)
START_OF_DAY([dateCol])START_OF_DAY(NOW())
dateSTART_OF_MONTH
Start of MonthDateStandarddate
START_OF_MONTH
Start of MonthDateStandarddateReturns the first day of the month containing the input date.
START_OF_MONTH(input: date)
START_OF_MONTH([dateCol])START_OF_MONTH([dateCol]) = START_OF_MONTH(CURRENT_DAY())
dateSTART_OF_QUARTER
Start of QuarterDateStandarddate
START_OF_QUARTER
Start of QuarterDateStandarddateReturns the first day of the quarter containing the input date.
START_OF_QUARTER(input: date)
START_OF_QUARTER([dateCol])START_OF_QUARTER([dateCol]) = START_OF_QUARTER(CURRENT_DAY())
dateSTART_OF_WEEK
Start of WeekDateStandarddate
START_OF_WEEK
Start of WeekDateStandarddateReturns the first day of the week containing the input date (week start from host calendar, default Sunday).
START_OF_WEEK(input: date)
START_OF_WEEK([dateCol])START_OF_WEEK([dateCol]) = START_OF_WEEK(CURRENT_DAY())
dateSTART_OF_YEAR
Start of YearDateStandarddate
START_OF_YEAR
Start of YearDateStandarddateReturns the first day of the year containing the input date.
START_OF_YEAR(input: date)
START_OF_YEAR([dateCol])START_OF_YEAR([dateCol]) = START_OF_YEAR(CURRENT_DAY())
dateWEEK
Week NumberDateStandardnumber
WEEK
Week NumberDateStandardnumberReturns the week-of-year number (week start from host calendar, default Sunday). Use DAY for day-of-month and WEEKDAY for day-of-week.
WEEK(input: date)
WEEK([dateCol])WEEK([dateCol]) = WEEK(CURRENT_DAY())
dateWEEKDAY
WeekdayDateStandardnumber
WEEKDAY
WeekdayDateStandardnumberReturns the day of the week as a number (1 = Sunday … 7 = Saturday). Use DAY for day-of-month and WEEK for week-of-year.
WEEKDAY(input: date)
WEEKDAY([dateCol])WEEKDAY([dateCol]) = WEEKDAY(CURRENT_DAY())
dateWORKDAY
WorkdayDateStandarddate
WORKDAY
WorkdayDateStandarddateReturns the date that is the given number of working days after (or before, if negative) the start date — weekends and configured holidays are skipped; the start date is not counted (Excel WORKDAY). Prefer ADD_DAYS for plain calendar-day shifts.
WORKDAY(start: date, days: number)
WORKDAY([dateCol], 2)WORKDAY(CURRENT_DAY(), -1)
date, numberYEAR
YearDateStandardnumber
YEAR
YearDateStandardnumberReturns the full calendar year as a number.
YEAR(input: date)
YEAR([dateCol])YEAR([dateCol]) = YEAR(CURRENT_DAY())
dateABSOLUTE_CHANGE
Absolute ChangeRelative ChangeStandardnumber
ABSOLUTE_CHANGE
Absolute ChangeRelative ChangeStandardnumberReturns absolute difference between a numeric cell's previous and current value. Optional "INCREASE" / "DECREASE" returns the change only when the value rose or fell. Compare the result in an expression (e.g. > 5). Requires a data-change context.
ABSOLUTE_CHANGE([numCol])ABSOLUTE_CHANGE($SCOPE)ABSOLUTE_CHANGE([numCol], "INCREASE"|"DECREASE")
ABSOLUTE_CHANGE([numCol]) > 5ABSOLUTE_CHANGE($SCOPE) > 1ABSOLUTE_CHANGE([numCol], "INCREASE") > 5ABSOLUTE_CHANGE([numCol], "DECREASE") > 5
numbernumber, textANY_CHANGE
Any ChangeRelative ChangeStandardboolean
ANY_CHANGE
Any ChangeRelative ChangeStandardbooleanReturns true if the changed cell differs from its previous value. With a column or $SCOPE, checks that subject; with no argument, checks whether any value changed on the event. Requires a data-change context.
ANY_CHANGE()ANY_CHANGE([numCol])ANY_CHANGE($SCOPE)
ANY_CHANGE()ANY_CHANGE([numCol])ANY_CHANGE([stringCol])ANY_CHANGE($SCOPE)
anyPERCENT_CHANGE
Percent ChangeRelative ChangeStandardnumber
PERCENT_CHANGE
Percent ChangeRelative ChangeStandardnumberReturns the percentage change between a numeric cell's previous and current value (|Δ| / previous × 100). Optional "INCREASE" / "DECREASE" returns the change only when the value rose or fell (otherwise no value). Compare the result in an expression (e.g. > 10). Requires a data-change context.
PERCENT_CHANGE([numCol])PERCENT_CHANGE($SCOPE)PERCENT_CHANGE([numCol], "INCREASE"|"DECREASE")
PERCENT_CHANGE([numCol]) > 10PERCENT_CHANGE($SCOPE) > 5PERCENT_CHANGE([numCol], "INCREASE") > 10PERCENT_CHANGE([numCol], "DECREASE") > 10
numbernumber, textANY_CONTAINS
Any ContainsGeneralStandardboolean
ANY_CONTAINS
Any ContainsGeneralStandardbooleanReturns true if any cell in the row contains given the value as display text
ANY_CONTAINS(value: text | number)
ANY_CONTAINS("abc")ANY_CONTAINS(11)
textnumberCOALESCE
CoalesceGeneralStandardany
COALESCE
CoalesceGeneralStandardanyReturns the first argument that is not null or undefined.
COALESCE(value, value, ...value)
COALESCE([numCol], [numCol], 0)COALESCE([stringCol], "n/a")
IS_BLANK
BlanksGeneralStandardboolean
IS_BLANK
BlanksGeneralStandardbooleanReturns true if the value is undefined, null, an empty string, or an empty array.
IS_BLANK(input: any)
IS_BLANK([stringCol])IS_BLANK($SCOPE)
anyIS_NOT_BLANK
Non BlanksGeneralStandardboolean
IS_NOT_BLANK
Non BlanksGeneralStandardbooleanReturns true if the value is not blank (not null, undefined, or empty/whitespace text).
IS_NOT_BLANK(input: any)
IS_NOT_BLANK([stringCol])IS_NOT_BLANK($SCOPE)
anyIS_NUMERIC
Is NumericGeneralStandardboolean
IS_NUMERIC
Is NumericGeneralStandardbooleanReturns true if the value can be interpreted as a number.
IS_NUMERIC(a: any)
IS_NUMERIC([stringCol])IS_NUMERIC("123")IS_NUMERIC([numCol])
anyTO_ARRAY
To ArrayGeneralStandardany
TO_ARRAY
To ArrayGeneralStandardanyReturns an array containing the given values or expressions (useful for building lists for IN and similar).
TO_ARRAY(value1, value2, ...)
TO_ARRAY(1, 2, 3)TO_ARRAY("a", "b", "c")TO_ARRAY(DATE("2024-01-01"), DATE("2024-06-01"))TO_ARRAY([numCol], [stringCol])TO_ARRAY([numCol], AVG([numCol], 5), QUERY("maxValue"))
$SCOPE
ScopeReferenceStandardany
$SCOPE
ScopeReferenceStandardanyReturns the value of the column in the current scope (e.g. Format Column / Alert column context).
$SCOPE
$SCOPE > 10IS_BLANK($SCOPE)
COL
ColReferenceStandardany
COL
ColReferenceStandardanyReturns the value of a column. Prefer the bracket form [columnId] when possible; use COL when the name is dynamic.
[columnId]COL(name: text)
[numCol]COL("numCol")
textFIELD
FieldReferenceCumulativeQuantileWindowStandardany
FIELD
FieldReferenceCumulativeQuantileWindowStandardanyReturns the value of a row field that is not necessarily a grid column. Use dot notation for nested fields (e.g. "address.city"). Prefer COL / [columnId] for normal columns.
FIELD(fieldName: text)
FIELD("customerId")FIELD("address.city")FIELD("address.city") = "London"
textQUERY
QueryReferenceStandardany
QUERY
QueryReferenceStandardanyReturns the result of evaluating a Named Query by name. The Named Query must already exist; circular QUERY references are rejected.
QUERY(name: text)
QUERY("HighValueRows")[price] > QUERY("PriceThreshold")SUM{[numCol]} > 100 WHERE QUERY("CurrencyDollar")
textVAR
VarReferenceCumulativeQuantileWindowStandardany
VAR
VarReferenceCumulativeQuantileWindowStandardanyReturns the value of a Query Variable by name. Optional extra arguments are passed through to the variable handler when it accepts parameters.
VAR(varName)VAR(varName, arg1, arg2, …)
VAR('CURRENT_USER')VAR('TODAY')[stringCol] = VAR('CURRENT_USER')VAR('IS_VALID_VALUE', IS_BLANK([numCol]), [numCol] < [weightCol])