AdapTableQL Expression Functions

View as Markdown

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, Aggregation or Observable
  • Categories within that Type (e.g. Numeric in Standard or Cumulative in Aggregation)

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).

Filter
Expression Type
Category

Showing 110 of 110 functions

SortSort:

EQ

Equals=ComparisonStandardboolean
Standard

Returns 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.

Signatures
  • value = value
  • EQ(a: value, b: value)
Examples
  • [numCol] = 5
  • EQ([numCol], 5)
  • [stringCol] = "open"
  • [boolCol] = TRUE
  • [dateCol] = DATE(2024, 1, 1)
Operands
number, numberdate, datetext, textboolean, boolean

GT

Greater Than>ComparisonStandardboolean
Standard

Returns true if the first value is greater than the second. Also available as the > shortcut (e.g. [price] > 5).

Signatures
  • number > number
  • date > date
  • GT(a: number, b: number)
  • GT(a: date, b: date)
Examples
  • [numCol] > 5
  • GT([numCol], 5)
  • [dateCol] > CURRENT_DAY()
Operands
number, numberdate, date

GTE

Greater Than or Equals>=ComparisonStandardboolean
Standard

Returns true if the first value is greater than or equal to the second. Also available as the >= shortcut (e.g. [price] >= 5).

Signatures
  • number >= number
  • date >= date
  • GTE(a: number, b: number)
  • GTE(a: date, b: date)
Examples
  • [numCol] >= 5
  • GTE([numCol], 5)
  • [dateCol] >= CURRENT_DAY()
Operands
number, numberdate, date

IN

In#[ComparisonStandardboolean
Standard

Returns true if the value is in the list. Also matches any element of an array column, and group paths for the auto-group column.

Signatures
  • value IN (value, value, ...)
Examples
  • [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")
Operands
number, number[]date, date[]text, text[]number[], number[]text[], text[]

LT

Less Than<ComparisonStandardboolean
Standard

Returns true if the first value is less than the second. Also available as the < shortcut (e.g. [price] < 5).

Signatures
  • number < number
  • date < date
  • LT(a: number, b: number)
  • LT(a: date, b: date)
Examples
  • [numCol] < 5
  • LT([numCol], 5)
  • [dateCol] < CURRENT_DAY()
Operands
number, numberdate, date

LTE

Less Than or Equals<=ComparisonStandardboolean
Standard

Returns true if the first value is less than or equal to the second. Also available as the <= shortcut (e.g. [price] <= 5).

Signatures
  • number <= number
  • date <= date
  • LTE(a: number, b: number)
  • LTE(a: date, b: date)
Examples
  • [numCol] <= 5
  • LTE([numCol], 5)
  • [dateCol] <= CURRENT_DAY()
Operands
number, numberdate, date

NEQ

Not Equals!=ComparisonStandardboolean
Standard

Returns true if the two values are not equal. Also available as the != shortcut (e.g. [price] != 5).

Signatures
  • value != value
  • NEQ(a: value, b: value)
Examples
  • [numCol] != 5
  • NEQ([numCol], 5)
  • [stringCol] != "closed"
  • [boolCol] != FALSE
Operands
number, numberdate, datetext, textboolean, boolean

NOT_IN

Not InComparisonStandardboolean
Standard

Returns 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.

Signatures
  • value NOT_IN (value, value, ...)
Examples
  • [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")
Operands
number, number[]date, date[]text, text[]number[], number[]text[], text[]

AND

AndLogicalStandardboolean
Standard

Returns true if both conditions are true. Also available as the AND operator (e.g. [price] > 5 AND [price] < 10).

Signatures
  • condition AND condition
  • AND(a: boolean, b: boolean)
Examples
  • [numCol] > 5 AND [numCol] < 10
  • AND(IS_BLANK([stringCol]), [boolCol])
Operands
boolean, boolean

CASE

CaseLogicalStandardany
Standard

Returns 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.

Signatures
  • CASE value WHEN match THEN result … [ELSE result] END
  • CASE WHEN condition THEN result … [ELSE result] END
Examples
  • CASE [stringCol] WHEN 'Saturday' THEN 'weekend' WHEN 'Sunday' THEN 'weekend' ELSE 'workday' END
  • CASE WHEN [numCol] < 10 THEN 'low' WHEN [numCol] < 50 THEN 'medium' ELSE 'high' END

FALSE

FalseLogicalStandardboolean
Standard

Returns the boolean value false (written as the FALSE literal).

Signatures
  • FALSE
Examples
  • [boolCol] = FALSE
  • IS_BLANK([stringCol]) ? FALSE : TRUE

IF

IfLogicalStandardany
Standard

Returns one value if the condition is true, otherwise another. Also available as the ternary shortcut (e.g. [price] > 10 ? "BIG" : "SMALL").

Signatures
  • condition ? trueValue : falseValue
  • IF(condition: boolean, trueValue: any, falseValue: any)
Examples
  • [numCol] > 10 ? "BIG" : "SMALL"
  • IF(IS_BLANK([stringCol]), "n/a", [stringCol])
Operands
boolean, any, any

IFERROR

If ErrorLogicalStandardany
Standard

Returns 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.

Signatures
  • IFERROR(value: any, fallback: any)
Examples
  • IFERROR([numCol] / [numCol], 0)
  • IFERROR(NA(), "missing")
Operands
any, any

IFNA

If N/ALogicalStandardany
Standard

Returns 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).

Signatures
  • IFNA(value: any, fallback: any)
Examples
  • IFNA(NA(), 0)
  • IFNA(QUERY("lookup"), "n/a")
Operands
any, any

NA

N/ALogicalStandardany
Standard

Returns an N/A error (Excel NA). Catch with IFNA or IFERROR. Use NULL() for a plain null value.

Signatures
  • NA()
Examples
  • IFNA(NA(), 0)
  • IFERROR(NA(), "missing")

NOT

Not!LogicalStandardboolean
Standard

Returns the negation of a condition. Also available as the ! shortcut (e.g. !([price] > 5)).

Signatures
  • !condition
  • NOT(a: boolean)
Examples
  • !([numCol] > 5)
  • NOT(IS_BLANK([stringCol]))
Operands
boolean

NULL

NullLogicalStandardnull
Standard

Returns the null value. Prefer NA() when you need an Excel-style N/A error for IFNA / IFERROR.

Signatures
  • NULL()
Examples
  • [stringCol] = "accepted" ? 100 : NULL()
  • COALESCE([numCol], NULL(), 0)

OR

OrLogicalStandardboolean
Standard

Returns true if either condition is true. Also available as the OR operator (e.g. [price] > 5 OR [price] < 0).

Signatures
  • condition OR condition
  • OR(a: boolean, b: boolean)
Examples
  • [numCol] > 5 OR [numCol] < 0
  • OR(IS_TODAY([dateCol]), IS_TOMORROW([dateCol]))
Operands
boolean, boolean

TRUE

TrueLogicalStandardboolean
Standard

Returns the boolean value true (written as the TRUE literal).

Signatures
  • TRUE
Examples
  • [boolCol] = TRUE
  • [stringCol] = "open" ? TRUE : FALSE

ABS

AbsNumericStandardnumber
Standard

Returns the absolute value of a given number.

Signatures
  • ABS(a: number)
Examples
  • ABS([numCol])
  • ABS(-12.5)
Operands
number

AVG

AvgNumericCumulativeStandardnumber
Standard

Returns the average of one or more numbers.

Signatures
  • AVG(number, number, ...number)
Examples
  • AVG([numCol], 5)
  • AVG(10, 20, 30)
Operands
number[]

CEILING

CeilingNumericStandardnumber
Standard

Returns the smallest integer greater than or equal to the given number.

Signatures
  • CEILING(a: number)
Examples
  • CEILING([numCol])
  • CEILING(2.1)
Operands
number

DIV

Div/NumericStandardnumber
Standard

Returns the result of dividing two numbers. Also available as the / shortcut (e.g. [price] / 5).

Signatures
  • number / number
  • DIV(a: number, b: number)
Examples
  • [numCol] / 5
  • DIV([numCol], 5)
Operands
number, number

FLOOR

FloorNumericStandardnumber
Standard

Returns the largest integer less than or equal to the given number.

Signatures
  • FLOOR(a: number)
Examples
  • FLOOR([numCol])
  • FLOOR(2.9)
Operands
number

IS_NEGATIVE

NegativeNumericStandardboolean
Standard

Returns true if the number is less than zero.

Signatures
  • IS_NEGATIVE(a: number)
Examples
  • IS_NEGATIVE([numCol])
  • IS_NEGATIVE($SCOPE)
Operands
number

IS_POSITIVE

PositiveNumericStandardboolean
Standard

Returns true if the number is greater than zero.

Signatures
  • IS_POSITIVE(a: number)
Examples
  • IS_POSITIVE([numCol])
  • IS_POSITIVE($SCOPE)
Operands
number

MAX

MaxNumericCumulativeStandardnumber
Standard

Returns the highest of one or more numbers.

Signatures
  • MAX(number, number, ...number)
Examples
  • MAX([numCol], 5)
  • MAX(10, 20, 3)
Operands
number[]

MIN

MinNumericCumulativeStandardnumber
Standard

Returns the smallest of one or more numbers.

Signatures
  • MIN(number, number, ...number)
Examples
  • MIN([numCol], 5)
  • MIN(10, 20, 3)
Operands
number[]

MOD

Mod%NumericStandardnumber
Standard

Returns remainder after dividing two numbers. Also available as % shortcut (e.g. [price] % 5).

Signatures
  • number % number
  • MOD(a: number, b: number)
Examples
  • [numCol] % 5
  • MOD([numCol], 5)
Operands
number, number

POW

Pow^NumericStandardnumber
Standard

Returns the first number raised to the power of the second. Also available as the ^ shortcut (e.g. [price] ^ 2).

Signatures
  • number ^ number
  • POW(a: number, b: number)
Examples
  • [numCol] ^ 2
  • POW([numCol], 2)
Operands
number, number

PRODUCT

Product*NumericStandardnumber
Standard

Returns the product of one or more numbers. Also available as the * shortcut (e.g. [price] * 5).

Signatures
  • number * number
  • PRODUCT(number, number, ...number)
Examples
  • [numCol] * 5
  • PRODUCT([numCol], 5)
  • PRODUCT(2, 3, 4)
Operands
number[]

ROUND

RoundNumericStandardnumber
Standard

Returns the number rounded to the given decimal places (default 0). Negative digits round left of the decimal (Excel ROUND).

Signatures
  • ROUND(a: number)
  • ROUND(a: number, digits: number)
Examples
  • ROUND([numCol])
  • ROUND([numCol], 2)
  • ROUND([numCol], -3)
Operands
numbernumber, number

SIGN

SignNumericStandardnumber
Standard

Returns the sign of a number as -1, 0, or 1 (Excel SIGN).

Signatures
  • SIGN(a: number)
Examples
  • SIGN([numCol])
  • SIGN(-12)
Operands
number

SQRT

Square RootNumericStandardnumber
Standard

Returns the square root of a non-negative number.

Signatures
  • SQRT(a: number)
Examples
  • SQRT([numCol])
  • SQRT(9)
Operands
number

SUB

Sub-NumericStandardnumber
Standard

Returns the difference of two numbers. Also available as the - shortcut (e.g. [price] - 5).

Signatures
  • number - number
  • SUB(a: number, b: number)
Examples
  • [numCol] - 5
  • SUB([numCol], 5)
Operands
number, number

SUM

Sum+NumericCumulativeStandardnumber
Standard

Returns the sum of one or more numbers. Also available as the + shortcut (e.g. [price] + 5).

Signatures
  • number + number
  • SUM(number, number, ...number)
Examples
  • [numCol] + 5
  • SUM([numCol], 5)
  • SUM(2, 4, 6)
Operands
number[]

CONCAT

ConcatTextStandardstring
Standard

Returns the concatenation of one or more text values with no separator (Excel CONCAT). Use TEXTJOIN when a delimiter is needed.

Signatures
  • CONCAT(value1, value2, ...)
Examples
  • CONCAT([stringCol], [stringCol])
  • CONCAT([stringCol], " - ", [stringCol])
Operands
text[]

CONTAINS

ContainsTextStandardboolean
Standard

Returns true if the first text contains the second. Also available as the CONTAINS operator (e.g. [name] CONTAINS "S").

Signatures
  • value1 CONTAINS value2
  • CONTAINS(a: text, b: text)
Examples
  • [stringCol] CONTAINS "S"
  • CONTAINS([stringCol], "S")
Operands
text, text

ENDS_WITH

Ends WithTextStandardboolean
Standard

Returns true if the first text ends with the second. Also available as the ENDS_WITH operator (e.g. [name] ENDS_WITH "S").

Signatures
  • value1 ENDS_WITH value2
  • ENDS_WITH(a: text, b: text)
Examples
  • [stringCol] ENDS_WITH "S"
  • ENDS_WITH([stringCol], "S")
Operands
text, text

LEFT

LeftTextStandardstring
Standard

Returns the first n characters of a text value (Excel LEFT).

Signatures
  • LEFT(text: text, count: number)
Examples
  • LEFT([stringCol], 3)
  • LEFT("ABCDEF", 2)
Operands
text, number

LEN

LenTextStandardnumber
Standard

Returns the length of a text value.

Signatures
  • LEN(a: text)
Examples
  • LEN([stringCol])
  • LEN("hello")
Operands
text

LOWER

LowerTextStandardstring
Standard

Returns the text converted to lower case.

Signatures
  • LOWER(a: text)
Examples
  • LOWER([stringCol])
  • LOWER("Hello")
Operands
text

MID

MidTextStandardstring
Standard

Returns n characters starting at a 1-based position (Excel MID).

Signatures
  • MID(text: text, start: number, count: number)
Examples
  • MID([stringCol], 2, 3)
  • MID("ABCDEF", 2, 3)
Operands
text, number, number

NOT_CONTAINS

Not ContainsTextStandardboolean
Standard

Returns true if the first text does NOT contain the second. Also available as the NOT_CONTAINS operator (e.g. [name] NOT_CONTAINS "S").

Signatures
  • value1 NOT_CONTAINS value2
  • NOT_CONTAINS(a: text, b: text)
Examples
  • [stringCol] NOT_CONTAINS "S"
  • NOT_CONTAINS([stringCol], "S")
Operands
text, text

REGEX

RegexTextStandardboolean
Standard

Returns true if the text matches the regular expression pattern.

Signatures
  • REGEX(a: text, b: pattern)
Examples
  • REGEX([stringCol], "[A-Z]+")
Operands
text, text

REPLACE

ReplaceTextStandardstring
Standard

Returns the text with all literal occurrences of a substring replaced (case sensitivity follows text-comparison settings). Not Excel position-based REPLACE.

Signatures
  • REPLACE(a: text, b: text, c: text)
Examples
  • REPLACE([stringCol], "GBP", "EUR")
Operands
text, text, text
RightTextStandardstring
Standard

Returns the last n characters of a text value (Excel RIGHT).

Signatures
  • RIGHT(text: text, count: number)
Examples
  • RIGHT([stringCol], 3)
  • RIGHT("ABCDEF", 2)
Operands
text, number

STARTS_WITH

Starts WithTextStandardboolean
Standard

Returns true if the first text starts with the second. Also available as the STARTS_WITH operator (e.g. [name] STARTS_WITH "S").

Signatures
  • value1 STARTS_WITH value2
  • STARTS_WITH(a: text, b: text)
Examples
  • [stringCol] STARTS_WITH "S"
  • STARTS_WITH([stringCol], "S")
Operands
text, text

SUB_STRING

Sub StringTextStandardstring
Standard

Returns characters between two 0-based indices (JavaScript substring). Use MID for Excel-style 1-based extraction.

Signatures
  • SUB_STRING(a: text, b: number, c: number)
Examples
  • SUB_STRING([stringCol], 1, 5)
Operands
text, number, number

TEXTJOIN

Text JoinTextStandardstring
Standard

Returns text values joined by a delimiter; optionally skips empties (Excel TEXTJOIN). Prefer over CONCAT when inserting separators.

Signatures
  • TEXTJOIN(delimiter: text, ignoreEmpty: boolean, text1: text, ...text)
Examples
  • TEXTJOIN(", ", TRUE, [stringCol], [stringCol])
  • TEXTJOIN("-", FALSE, "A", "", "B")
Operands
text, boolean, text[]

TRIM

TrimTextStandardstring
Standard

Returns the text with leading and trailing whitespace removed.

Signatures
  • TRIM(text: text)
Examples
  • TRIM([stringCol])
  • TRIM(" hello ")
Operands
text

UPPER

UpperTextStandardstring
Standard

Returns the text converted to upper case.

Signatures
  • UPPER(a: text)
Examples
  • UPPER([stringCol])
  • UPPER("hello")
Operands
text

ADD_DAYS

Add DaysDateStandarddate
Standard

Returns the date plus the given number of calendar days (time of day preserved). Prefer WORKDAY when skipping weekends and holidays.

Signatures
  • ADD_DAYS(input: date, days: number)
Examples
  • ADD_DAYS([dateCol], 5)
  • ADD_DAYS(CURRENT_DAY(), 5)
Operands
date, number

ADD_MONTHS

Add MonthsDateStandarddate
Standard

Returns 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.

Signatures
  • ADD_MONTHS(input: date, months: number)
Examples
  • ADD_MONTHS([dateCol], 1)
  • ADD_MONTHS(CURRENT_DAY(), 5)
Operands
date, number

ADD_WEEKS

Add WeeksDateStandarddate
Standard

Returns the date plus the given number of weeks (time of day preserved).

Signatures
  • ADD_WEEKS(input: date, weeks: number)
Examples
  • ADD_WEEKS([dateCol], 2)
  • ADD_WEEKS(CURRENT_DAY(), 5)
Operands
date, number

ADD_YEARS

Add YearsDateStandarddate
Standard

Returns the date plus the given number of years (time of day preserved).

Signatures
  • ADD_YEARS(input: date, years: number)
Examples
  • ADD_YEARS([dateCol], 1)
  • ADD_YEARS(CURRENT_DAY(), 5)
Operands
date, number

CURRENT_DAY

Current DayDateStandarddate
Standard

Returns today's date at the start of the day (midnight). Prefer NOW when you need the current date and time.

Signatures
  • CURRENT_DAY()
Examples
  • [dateCol] > CURRENT_DAY()
  • CURRENT_DAY()

DATE

DateDateStandarddate
Standard

Returns a date from an ISO-style text, or from year, month, and day numbers (month is 1-based, Excel DATE).

Signatures
  • DATE(input: text)
  • DATE(year: number, month: number, day: number)
  • DATE("YYYYMMDD")
  • DATE("YYYY-MM-DD")
  • DATE("YYYY-MM-DD HH:MM:SS")
Examples
  • DATE(2021, 1, 1)
  • DATE("20210101")
  • DATE("2021-01-01")
  • DATE("2021-01-01 10:10")
Operands
textnumber, number, number

DAY

Day of MonthDateStandardnumber
Standard

Returns the day of the month (1–31). Use WEEKDAY for day-of-week (1–7) and WEEK for week-of-year.

Signatures
  • DAY(input: date)
Examples
  • DAY([dateCol])
  • DAY([dateCol]) = DAY(CURRENT_DAY())
Operands
date

DIFF_DAYS

Diff DaysDateStandardnumber
Standard

Returns the number of calendar days from the second date to the first (a − b). Prefer NETWORKDAYS when counting working days inclusive of both ends.

Signatures
  • DIFF_DAYS(a: date, b: date)
Examples
  • DIFF_DAYS([dateCol], CURRENT_DAY())
Operands
date, date

DIFF_MONTHS

Diff MonthsDateStandardnumber
Standard

Returns the number of whole months from the second date to the first (a − b).

Signatures
  • DIFF_MONTHS(a: date, b: date)
Examples
  • DIFF_MONTHS([dateCol], CURRENT_DAY())
Operands
date, date

DIFF_WEEKS

Diff WeeksDateStandardnumber
Standard

Returns the number of whole weeks from the second date to the first (a − b).

Signatures
  • DIFF_WEEKS(a: date, b: date)
Examples
  • DIFF_WEEKS([dateCol], CURRENT_DAY())
Operands
date, date

DIFF_YEARS

Diff YearsDateStandardnumber
Standard

Returns the number of whole years from the second date to the first (a − b).

Signatures
  • DIFF_YEARS(a: date, b: date)
Examples
  • DIFF_YEARS([dateCol], CURRENT_DAY())
Operands
date, date

EDATE

EDateDateStandarddate
Standard

Returns 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.

Signatures
  • EDATE(start: date, months: number)
Examples
  • EDATE([dateCol], 1)
  • EDATE(CURRENT_DAY(), -3)
Operands
date, number

END_OF_MONTH

End of MonthDateStandarddate
Standard

Returns the last day of the month containing the input date (equivalent to EOMONTH(d, 0)). Use EOMONTH(date, months) to offset by months first.

Signatures
  • END_OF_MONTH(input: date)
Examples
  • END_OF_MONTH([dateCol])
  • END_OF_MONTH(CURRENT_DAY())
Operands
date

EOMONTH

EOMonthDateStandarddate
Standard

Returns 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)).

Signatures
  • EOMONTH(start: date, months: number)
Examples
  • EOMONTH([dateCol], 0)
  • EOMONTH(CURRENT_DAY(), 1)
Operands
date, number

IS_AFTER_TODAY

After TodayDateStandardboolean
Standard

Returns true if the calendar day is strictly after today. Prefer IS_FUTURE when comparing against the current instant (including later today).

Signatures
  • IS_AFTER_TODAY(a: date)
Examples
  • IS_AFTER_TODAY([dateCol])
Operands
date

IS_BEFORE_TODAY

Before TodayDateStandardboolean
Standard

Returns true if the calendar day is strictly before today. Prefer IS_PAST when comparing against the current instant (including earlier today).

Signatures
  • IS_BEFORE_TODAY(a: date)
Examples
  • IS_BEFORE_TODAY([dateCol])
Operands
date

IS_DIFFERENT_DAY

Different DayDateStandardboolean
Standard

Returns true if two dates fall on different calendar days (time ignored).

Signatures
  • IS_DIFFERENT_DAY(a: date, b: date)
Examples
  • IS_DIFFERENT_DAY([dateCol], DATE(2026, 1, 1))
  • IS_DIFFERENT_DAY([dateCol], CURRENT_DAY())
Operands
date, date

IS_FUTURE

In FutureDateStandardboolean
Standard

Returns 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).

Signatures
  • IS_FUTURE(a: date)
Examples
  • IS_FUTURE([dateCol])
Operands
date

IS_HOLIDAY

HolidayDateStandardboolean
Standard

Returns true if the date is a configured holiday.

Signatures
  • IS_HOLIDAY(a: date)
Examples
  • IS_HOLIDAY([dateCol])
Operands
date

IS_NEXT_WORKDAY

Next Work DayDateStandardboolean
Standard

Returns true if the date is the next working day after today.

Signatures
  • IS_NEXT_WORKDAY(a: date)
Examples
  • IS_NEXT_WORKDAY([dateCol])
Operands
date

IS_PAST

In PastDateStandardboolean
Standard

Returns 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).

Signatures
  • IS_PAST(a: date)
Examples
  • IS_PAST([dateCol])
Operands
date

IS_PREV_WORKDAY

Last Work DayDateStandardboolean
Standard

Returns true if the date is the previous working day before today.

Signatures
  • IS_PREV_WORKDAY(a: date)
Examples
  • IS_PREV_WORKDAY([dateCol])
Operands
date

IS_SAME_DAY

Same DayDateStandardboolean
Standard

Returns true if both dates fall on the same calendar day (time ignored).

Signatures
  • IS_SAME_DAY(a: date, b: date)
Examples
  • IS_SAME_DAY([dateCol], DATE(2026, 1, 1))
  • IS_SAME_DAY([dateCol], CURRENT_DAY())
Operands
date, date

IS_THIS_MONTH

This MonthDateStandardboolean
Standard

Returns true if the date falls in the current month.

Signatures
  • IS_THIS_MONTH(a: date)
Examples
  • IS_THIS_MONTH([dateCol])
Operands
date

IS_THIS_QUARTER

This QuarterDateStandardboolean
Standard

Returns true if the date falls in the current quarter.

Signatures
  • IS_THIS_QUARTER(a: date)
Examples
  • IS_THIS_QUARTER([dateCol])
Operands
date

IS_THIS_WEEK

This WeekDateStandardboolean
Standard

Returns true if the date falls in the current week.

Signatures
  • IS_THIS_WEEK(a: date)
Examples
  • IS_THIS_WEEK([dateCol])
Operands
date

IS_THIS_YEAR

This YearDateStandardboolean
Standard

Returns true if the date falls in the current year.

Signatures
  • IS_THIS_YEAR(a: date)
Examples
  • IS_THIS_YEAR([dateCol])
Operands
date

IS_TODAY

TodayDateStandardboolean
Standard

Returns true if the date falls on today.

Signatures
  • IS_TODAY(a: date)
Examples
  • IS_TODAY([dateCol])
Operands
date

IS_TOMORROW

TomorrowDateStandardboolean
Standard

Returns true if the date falls on tomorrow.

Signatures
  • IS_TOMORROW(a: date)
Examples
  • IS_TOMORROW([dateCol])
Operands
date

IS_WORKDAY

Working DayDateStandardboolean
Standard

Returns true if the date is a working day (weekends and configured holidays excluded).

Signatures
  • IS_WORKDAY(a: date)
Examples
  • IS_WORKDAY([dateCol])
Operands
date

IS_YESTERDAY

YesterdayDateStandardboolean
Standard

Returns true if the date falls on yesterday.

Signatures
  • IS_YESTERDAY(a: date)
Examples
  • IS_YESTERDAY([dateCol])
Operands
date

MONTH

MonthDateStandardnumber
Standard

Returns the month as a number (1–12).

Signatures
  • MONTH(input: date)
Examples
  • MONTH([dateCol])
  • MONTH([dateCol]) = MONTH(CURRENT_DAY())
Operands
date

NETWORKDAYS

Network DaysDateStandardnumber
Standard

Returns 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).

Signatures
  • NETWORKDAYS(start: date, end: date)
Examples
  • NETWORKDAYS([dateCol], CURRENT_DAY())
  • NETWORKDAYS(DATE(2026, 1, 1), DATE(2026, 1, 31))
Operands
date, date

NOW

NowDateStandarddate
Standard

Returns the current date and time. Prefer CURRENT_DAY when you only need today's date at midnight.

Signatures
  • NOW()
Examples
  • [dateCol] > NOW()
  • NOW()

QUARTER

QuarterDateStandardnumber
Standard

Returns the calendar quarter as a number (1–4).

Signatures
  • QUARTER(input: date)
Examples
  • QUARTER([dateCol])
  • QUARTER([dateCol]) = QUARTER(CURRENT_DAY())
Operands
date

START_OF_DAY

Start of DayDateStandarddate
Standard

Returns the input date truncated to the start of its calendar day.

Signatures
  • START_OF_DAY(input: date)
Examples
  • START_OF_DAY([dateCol])
  • START_OF_DAY(NOW())
Operands
date

START_OF_MONTH

Start of MonthDateStandarddate
Standard

Returns the first day of the month containing the input date.

Signatures
  • START_OF_MONTH(input: date)
Examples
  • START_OF_MONTH([dateCol])
  • START_OF_MONTH([dateCol]) = START_OF_MONTH(CURRENT_DAY())
Operands
date

START_OF_QUARTER

Start of QuarterDateStandarddate
Standard

Returns the first day of the quarter containing the input date.

Signatures
  • START_OF_QUARTER(input: date)
Examples
  • START_OF_QUARTER([dateCol])
  • START_OF_QUARTER([dateCol]) = START_OF_QUARTER(CURRENT_DAY())
Operands
date

START_OF_WEEK

Start of WeekDateStandarddate
Standard

Returns the first day of the week containing the input date (week start from host calendar, default Sunday).

Signatures
  • START_OF_WEEK(input: date)
Examples
  • START_OF_WEEK([dateCol])
  • START_OF_WEEK([dateCol]) = START_OF_WEEK(CURRENT_DAY())
Operands
date

START_OF_YEAR

Start of YearDateStandarddate
Standard

Returns the first day of the year containing the input date.

Signatures
  • START_OF_YEAR(input: date)
Examples
  • START_OF_YEAR([dateCol])
  • START_OF_YEAR([dateCol]) = START_OF_YEAR(CURRENT_DAY())
Operands
date

WEEK

Week NumberDateStandardnumber
Standard

Returns the week-of-year number (week start from host calendar, default Sunday). Use DAY for day-of-month and WEEKDAY for day-of-week.

Signatures
  • WEEK(input: date)
Examples
  • WEEK([dateCol])
  • WEEK([dateCol]) = WEEK(CURRENT_DAY())
Operands
date

WEEKDAY

WeekdayDateStandardnumber
Standard

Returns the day of the week as a number (1 = Sunday … 7 = Saturday). Use DAY for day-of-month and WEEK for week-of-year.

Signatures
  • WEEKDAY(input: date)
Examples
  • WEEKDAY([dateCol])
  • WEEKDAY([dateCol]) = WEEKDAY(CURRENT_DAY())
Operands
date

WORKDAY

WorkdayDateStandarddate
Standard

Returns 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.

Signatures
  • WORKDAY(start: date, days: number)
Examples
  • WORKDAY([dateCol], 2)
  • WORKDAY(CURRENT_DAY(), -1)
Operands
date, number

YEAR

YearDateStandardnumber
Standard

Returns the full calendar year as a number.

Signatures
  • YEAR(input: date)
Examples
  • YEAR([dateCol])
  • YEAR([dateCol]) = YEAR(CURRENT_DAY())
Operands
date

ABSOLUTE_CHANGE

Absolute ChangeRelative ChangeStandardnumber
Standard

Returns 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.

Signatures
  • ABSOLUTE_CHANGE([numCol])
  • ABSOLUTE_CHANGE($SCOPE)
  • ABSOLUTE_CHANGE([numCol], "INCREASE"|"DECREASE")
Examples
  • ABSOLUTE_CHANGE([numCol]) > 5
  • ABSOLUTE_CHANGE($SCOPE) > 1
  • ABSOLUTE_CHANGE([numCol], "INCREASE") > 5
  • ABSOLUTE_CHANGE([numCol], "DECREASE") > 5
Operands
numbernumber, text

ANY_CHANGE

Any ChangeRelative ChangeStandardboolean
Standard

Returns 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.

Signatures
  • ANY_CHANGE()
  • ANY_CHANGE([numCol])
  • ANY_CHANGE($SCOPE)
Examples
  • ANY_CHANGE()
  • ANY_CHANGE([numCol])
  • ANY_CHANGE([stringCol])
  • ANY_CHANGE($SCOPE)
Operands
any
Applies to
column or row

PERCENT_CHANGE

Percent ChangeRelative ChangeStandardnumber
Standard

Returns 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.

Signatures
  • PERCENT_CHANGE([numCol])
  • PERCENT_CHANGE($SCOPE)
  • PERCENT_CHANGE([numCol], "INCREASE"|"DECREASE")
Examples
  • PERCENT_CHANGE([numCol]) > 10
  • PERCENT_CHANGE($SCOPE) > 5
  • PERCENT_CHANGE([numCol], "INCREASE") > 10
  • PERCENT_CHANGE([numCol], "DECREASE") > 10
Operands
numbernumber, text

ANY_CONTAINS

Any ContainsGeneralStandardboolean
Standard

Returns true if any cell in the row contains given the value as display text

Signatures
  • ANY_CONTAINS(value: text | number)
Examples
  • ANY_CONTAINS("abc")
  • ANY_CONTAINS(11)
Operands
textnumber
Applies to
row

COALESCE

CoalesceGeneralStandardany
Standard

Returns the first argument that is not null or undefined.

Signatures
  • COALESCE(value, value, ...value)
Examples
  • COALESCE([numCol], [numCol], 0)
  • COALESCE([stringCol], "n/a")

IS_BLANK

BlanksGeneralStandardboolean
Standard

Returns true if the value is undefined, null, an empty string, or an empty array.

Signatures
  • IS_BLANK(input: any)
Examples
  • IS_BLANK([stringCol])
  • IS_BLANK($SCOPE)
Operands
any

IS_NOT_BLANK

Non BlanksGeneralStandardboolean
Standard

Returns true if the value is not blank (not null, undefined, or empty/whitespace text).

Signatures
  • IS_NOT_BLANK(input: any)
Examples
  • IS_NOT_BLANK([stringCol])
  • IS_NOT_BLANK($SCOPE)
Operands
any

IS_NUMERIC

Is NumericGeneralStandardboolean
Standard

Returns true if the value can be interpreted as a number.

Signatures
  • IS_NUMERIC(a: any)
Examples
  • IS_NUMERIC([stringCol])
  • IS_NUMERIC("123")
  • IS_NUMERIC([numCol])
Operands
any

TO_ARRAY

To ArrayGeneralStandardany
Standard

Returns an array containing the given values or expressions (useful for building lists for IN and similar).

Signatures
  • TO_ARRAY(value1, value2, ...)
Examples
  • 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
Standard

Returns the value of the column in the current scope (e.g. Format Column / Alert column context).

Signatures
  • $SCOPE
Examples
  • $SCOPE > 10
  • IS_BLANK($SCOPE)

COL

ColReferenceStandardany
Standard

Returns the value of a column. Prefer the bracket form [columnId] when possible; use COL when the name is dynamic.

Signatures
  • [columnId]
  • COL(name: text)
Examples
  • [numCol]
  • COL("numCol")
Operands
text

FIELD

FieldReferenceCumulativeQuantileWindowStandardany
Standard

Returns 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.

Signatures
  • FIELD(fieldName: text)
Examples
  • FIELD("customerId")
  • FIELD("address.city")
  • FIELD("address.city") = "London"
Operands
text

QUERY

QueryReferenceStandardany
Standard

Returns the result of evaluating a Named Query by name. The Named Query must already exist; circular QUERY references are rejected.

Signatures
  • QUERY(name: text)
Examples
  • QUERY("HighValueRows")
  • [price] > QUERY("PriceThreshold")
  • SUM{[numCol]} > 100 WHERE QUERY("CurrencyDollar")
Operands
text

VAR

VarReferenceCumulativeQuantileWindowStandardany
Standard

Returns the value of a Query Variable by name. Optional extra arguments are passed through to the variable handler when it accepts parameters.

Signatures
  • VAR(varName)
  • VAR(varName, arg1, arg2, …)
Examples
  • VAR('CURRENT_USER')
  • VAR('TODAY')
  • [stringCol] = VAR('CURRENT_USER')
  • VAR('IS_VALID_VALUE', IS_BLANK([numCol]), [numCol] < [weightCol])