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

The catalogue defaults to All functions. Use Expression Type (All, Standard, Aggregation, or Observable) to narrow the list; each entry shows type and category tags so you can tell similar names apart.

When you pick a single type, Category filters appear for that type (e.g. Numeric in Standard or Cumulative in Aggregation).

Deep links such as #SUMIF or #sumif open the matching function regardless of type.

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

Showing 152 of 152 functions

SortSort:

$SCOPE

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

ABS

AbsNumericStandardnumber
Standard

Returns the absolute value of a given number.

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

ABSOLUTE_CHANGE

Absolute 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

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

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

ANY_CHANGE

Any 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

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

AVG

AvgNumericStandardAggregationnumber
Standard

Returns the average of one or more numbers.

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

Returns the arithmetic mean of non-empty values in a numeric column. Optional WEIGHT uses another numeric column for a weighted average. Optional GROUP_BY computes within each partition.

Signatures
  • AVG{[numCol]}
  • AVG{[numCol], GROUP_BY([stringCol])}
  • AVG{[numCol], WEIGHT([weightCol])}
  • AVG{[numCol], WEIGHT([weightCol]), GROUP_BY([stringCol])}
Examples
  • AVG{[numCol]}
  • AVG{[numCol], GROUP_BY([stringCol])}
  • AVG{[numCol], WEIGHT([weightCol])}
  • AVG{[numCol], WEIGHT([weightCol]), GROUP_BY([stringCol])}
Operands
number

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

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

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

COL

ColGeneralStandardany
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

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

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

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

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

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

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

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

FALSE

FalseLogicalStandardboolean
Standard

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

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

FIELD

FieldGeneralStandardany
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

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

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

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

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[]

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_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_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_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_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_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

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_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

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

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

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

MAX

MaxNumericStandardAggregationnumber
Standard

Returns the highest of one or more numbers.

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

Returns the maximum value in a numeric or date column. Optional GROUP_BY computes within each partition.

Signatures
  • MAX{[numCol]}
  • MAX{[dateCol]}
  • MAX{[numCol], GROUP_BY([stringCol])}
Examples
  • MAX{[numCol]}
  • MAX{[dateCol]}
  • MAX{[numCol], GROUP_BY([stringCol])}
Operands
number | text | date

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

MIN

MinNumericStandardAggregationnumber
Standard

Returns the smallest of one or more numbers.

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

Returns the minimum value in a numeric or date column. Optional GROUP_BY computes within each partition.

Signatures
  • MIN{[numCol]}
  • MIN{[dateCol]}
  • MIN{[numCol], GROUP_BY([stringCol])}
Examples
  • MIN{[numCol]}
  • MIN{[dateCol]}
  • MIN{[numCol], GROUP_BY([stringCol])}
Operands
number | text | date

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

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

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

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

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

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

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

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[]

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

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

PERCENT_CHANGE

Percent ChangeStandardObservablenumber
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
Observable

Percentage move of the cell over the window: (current − start) / start × 100. A live history reader which accepts WITHIN, LAST_N, ALL_ROWS, TRIGGER and WHERE.

Signatures
  • PERCENT_CHANGE{[numCol]}
  • PERCENT_CHANGE{[numCol], WITHIN(<duration>)}
  • PERCENT_CHANGE{[numCol], LAST_N(<n>)}
  • PERCENT_CHANGE{[numCol], WITHIN(<duration>), ALL_ROWS()}
Examples
  • PERCENT_CHANGE{[numCol], WITHIN(1h)}
  • PERCENT_CHANGE{[numCol], WITHIN(1h)} > 5
  • ABS(PERCENT_CHANGE{[numCol], LAST_N(10)}) >= 2
  • PERCENT_CHANGE{[numCol], WITHIN(15m), ALL_ROWS()}
Operands
any

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*NumericStandardAggregationnumber
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[]
Aggregation

Returns the product of non-empty values in a numeric column. Optional GROUP_BY computes the product within each partition. An empty set returns 1.

Signatures
  • PRODUCT{[numCol]}
  • PRODUCT{[numCol], GROUP_BY([stringCol])}
  • PRODUCT{COL('numCol')}
Examples
  • PRODUCT{[numCol]}
  • PRODUCT{[numCol], GROUP_BY([stringCol])}
Operands
number

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

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

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

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

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

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

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

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

SUM

Sum+NumericStandardAggregationnumber
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[]
Aggregation

Returns the sum of non-empty values in a numeric column. Optional GROUP_BY computes the sum within each partition.

Signatures
  • SUM{[numCol]}
  • SUM{[numCol], GROUP_BY([stringCol])}
  • SUM{COL('numCol')}
Examples
  • SUM{[numCol]}
  • SUM{[numCol], GROUP_BY([stringCol])}
Operands
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[]

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

TRIM

TrimTextStandardstring
Standard

Returns the text with leading and trailing whitespace removed.

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

TRUE

TrueLogicalStandardboolean
Standard

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

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

UPPER

UpperTextStandardstring
Standard

Returns the text converted to upper case.

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

VAR

VarReferenceStandardany
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])

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_DIFF

Absolute DiffAggregationnumber
Aggregation

Returns the absolute difference between each row value and a relative aggregation (AVG, MEDIAN, MODE, MIN, MAX, LAG, LEAD, FIRST, or LAST). If you need grouping, put GROUP_BY on the inner aggregation (not on ABSOLUTE_DIFF).

Signatures
  • ABSOLUTE_DIFF([numCol], AVG|MEDIAN|MODE|MIN|MAX{[numCol]})
  • ABSOLUTE_DIFF([numCol], LAG|LEAD|FIRST|LAST{[numCol], OVER([dateCol])})
Examples
  • ABSOLUTE_DIFF([numCol], MAX{[numCol]})
  • ABSOLUTE_DIFF([numCol], AVG{[numCol], GROUP_BY([stringCol])})
  • ABSOLUTE_DIFF([numCol], LAG{[numCol], OVER([dateCol])})
Operands
number, any

AVGIF

Average IfAggregationnumber
Aggregation

Returns arithmetic mean of a numeric column over the rows that match the predicate (an ordinary boolean expression).

Signatures
  • AVGIF{[numCol], <predicate>}
Examples
  • AVGIF{[price], [region] = "EMEA"}
  • AVGIF{[notional], [currency] = "USD" AND [notional] > 0}
Operands
number, boolean

COUNT

CountAggregationnumber
Aggregation

Returns the count of non-empty values in a column. Optional GROUP_BY computes within each partition.

Signatures
  • COUNT{[numCol]}
  • COUNT{[stringCol]}
  • COUNT{[numCol], GROUP_BY([stringCol])}
Examples
  • COUNT{[numCol]}
  • COUNT{[stringCol]}
  • COUNT{[numCol], GROUP_BY([stringCol])}
Operands
any

COUNTIF

Count IfAggregationnumber
Aggregation

Returns count of non-empty values in a column over the rows that match the predicate (an ordinary boolean expression).

Signatures
  • COUNTIF{[col], <predicate>}
Examples
  • COUNTIF{[id], [status] = "Open"}
  • COUNTIF{[id], [notional] > 0 OR [flagged] = TRUE}
Operands
any, boolean

DISTINCT

DistinctAggregationnumber
Aggregation

Returns how many distinct values appear in a column. Optional GROUP_BY computes within each partition.

Signatures
  • DISTINCT{[numCol]}
  • DISTINCT{[stringCol]}
  • DISTINCT{[numCol], GROUP_BY([stringCol])}
Examples
  • DISTINCT{[numCol]}
  • DISTINCT{[stringCol]}
  • DISTINCT{[stringCol], GROUP_BY([stringCol])}
Operands
number | text | date

FIRST

FirstAggregation
Aggregation

Returns the first value of the given column when rows are ordered by OVER. Optional GROUP_BY computes that first value within each partition.

Signatures
  • FIRST{[numCol], OVER([dateCol])}
  • FIRST{[numCol], OVER([dateCol]), GROUP_BY([stringCol])}
Examples
  • FIRST{[numCol], OVER([dateCol])}
  • FIRST{[stringCol], OVER([dateCol]), GROUP_BY([stringCol])}
Operands
number | text | date

LAG

Lag (Previous)Aggregation
Aggregation

Returns the value from a previous row in the given column when ordered by OVER (SQL LAG). Offset is a required positive integer. Optional GROUP_BY computes within each partition. See also LEAD.

Signatures
  • LAG{[numCol], offset: number, OVER([dateCol])}
  • LAG{[numCol], offset: number, OVER([dateCol]), GROUP_BY([stringCol])}
Examples
  • LAG{[numCol], 1, OVER([dateCol])}
  • LAG{[numCol], 2, OVER([dateCol]), GROUP_BY([stringCol])}
Operands
any, number?

LAST

LastAggregation
Aggregation

Returns the last value of the given column when rows are ordered by OVER. Optional GROUP_BY computes that last value within each partition.

Signatures
  • LAST{[numCol], OVER([dateCol])}
  • LAST{[numCol], OVER([dateCol]), GROUP_BY([stringCol])}
Examples
  • LAST{[numCol], OVER([dateCol])}
  • LAST{[stringCol], OVER([dateCol]), GROUP_BY([stringCol])}
Operands
number | text | date

LEAD

Lead (Next)Aggregation
Aggregation

Returns the value from a later row in the given column when ordered by OVER (SQL LEAD). Offset is a required positive integer. Optional GROUP_BY computes within each partition. See also LAG.

Signatures
  • LEAD{[numCol], offset: number, OVER([dateCol])}
  • LEAD{[numCol], offset: number, OVER([dateCol]), GROUP_BY([stringCol])}
Examples
  • LEAD{[numCol], 1, OVER([dateCol])}
  • LEAD{[numCol], 2, OVER([dateCol]), GROUP_BY([stringCol])}
Operands
any, number?

MEDIAN

MedianAggregationnumber
Aggregation

Returns the median of values in a numeric column. Optional GROUP_BY computes within each partition.

Signatures
  • MEDIAN{[numCol]}
  • MEDIAN{[numCol], GROUP_BY([stringCol])}
  • MEDIAN{COL('numCol')}
Examples
  • MEDIAN{[numCol]}
  • MEDIAN{[numCol], GROUP_BY([stringCol])}
Operands
number

MODE

ModeAggregation
Aggregation

Returns the most frequent value in a number, text, or date column. Optional GROUP_BY computes within each partition.

Signatures
  • MODE{[numCol]}
  • MODE{[stringCol]}
  • MODE{[numCol], GROUP_BY([stringCol])}
Examples
  • MODE{[numCol]}
  • MODE{[stringCol]}
  • MODE{[stringCol], GROUP_BY([stringCol])}
Operands
number | text | date

ONLY

OnlyAggregation
Aggregation

Returns the column value when every non-empty row shares the same value; otherwise returns null. Works with number and text columns. Optional GROUP_BY computes within each partition.

Signatures
  • ONLY{[numCol]}
  • ONLY{[stringCol]}
  • ONLY{[stringCol], GROUP_BY([stringCol])}
Examples
  • ONLY{[numCol]}
  • ONLY{[stringCol]}
  • ONLY{[stringCol], GROUP_BY([stringCol])}
Operands
number | text | date

PERCENT_DIFF

Percent DiffAggregationnumber
Aggregation

Returns the percentage difference between each row value and a relative aggregation (AVG, MEDIAN, MODE, MIN, MAX, LAG, LEAD, FIRST, or LAST). If you need grouping, put GROUP_BY on the inner aggregation (not on PERCENT_DIFF).

Signatures
  • PERCENT_DIFF([numCol], AVG|MEDIAN|MODE|MIN|MAX{[numCol]})
  • PERCENT_DIFF([numCol], LAG|LEAD|FIRST|LAST{[numCol], OVER([dateCol])})
Examples
  • PERCENT_DIFF([numCol], MAX{[numCol]})
  • PERCENT_DIFF([numCol], AVG{[numCol], GROUP_BY([stringCol])})
  • PERCENT_DIFF([numCol], LAG{[numCol], OVER([dateCol])})
Operands
number, any

PERCENTAGE

PercentageAggregationnumber
Aggregation

Returns each row's value as a percentage of a column sum (×100). By default the denominator is SUM of the same column; pass SUM{[otherCol]} to use another column's sum. Optional GROUP_BY scopes the denominator to each partition. Pass either GROUP_BY or SUM{...}, not both.

Signatures
  • PERCENTAGE([numCol])
  • PERCENTAGE([numCol], GROUP_BY([stringCol]))
  • PERCENTAGE([numCol], SUM{[numCol]})
  • PERCENTAGE([numCol], SUM{[numCol], GROUP_BY([stringCol])})
Examples
  • PERCENTAGE([numCol])
  • PERCENTAGE([numCol], GROUP_BY([stringCol]))
  • PERCENTAGE([numCol], SUM{[weightCol]})
  • PERCENTAGE([numCol], SUM{[weightCol], GROUP_BY([stringCol])})
Operands
number, any?

PERCENTILE

PercentileAggregationnumber
Aggregation

Returns which percentile bucket (1–100) each row falls into for the given numeric column. Equivalent to QUANT{[numCol], 100}. Optional GROUP_BY partitions the ranking.

Signatures
  • PERCENTILE{[numCol]}
  • PERCENTILE{[numCol], GROUP_BY([stringCol])}
Examples
  • PERCENTILE{[numCol]}
  • PERCENTILE{[numCol], GROUP_BY([stringCol])}
Operands
number

QUANT

QuantAggregationnumber
Aggregation

Returns which q-quantile bucket each row falls into for the given numeric column (1…q). Common values: 4 (quartiles), 5 (quintiles), 10 (deciles), 100 (percentiles). Prefer QUARTILE / PERCENTILE for those fixed cases. Optional GROUP_BY partitions the ranking.

Signatures
  • QUANT{[numCol], q: number}
  • QUANT{[numCol], q: number, GROUP_BY([stringCol])}
  • QUANT{COL('numCol'), q: number}
Examples
  • QUANT{[numCol], 4}
  • QUANT{[numCol], 5}
  • QUANT{[numCol], 10}
  • QUANT{[numCol], 100}
  • QUANT{[numCol], 4, GROUP_BY([stringCol])}
Operands
number, number

QUARTILE

QuartileAggregationnumber
Aggregation

Returns which quartile (1–4) each row falls into for the given numeric column. Equivalent to QUANT{[numCol], 4}. Optional GROUP_BY partitions the ranking.

Signatures
  • QUARTILE{[numCol]}
  • QUARTILE{[numCol], GROUP_BY([stringCol])}
Examples
  • QUARTILE{[numCol]}
  • QUARTILE{[numCol], GROUP_BY([stringCol])}
Operands
number

RANK

RankAggregationnumber
Aggregation

Returns the 1-based rank of each row when ordered by OVER (ties share a rank; the next distinct value skips ranks). Optional GROUP_BY ranks within each partition.

Signatures
  • RANK{OVER([dateCol])}
  • RANK{OVER([numCol])}
  • RANK{OVER([dateCol]), GROUP_BY([stringCol])}
Examples
  • RANK{OVER([dateCol])}
  • RANK{OVER([numCol]), GROUP_BY([stringCol])}

STD_DEVIATION

Std DeviationAggregationnumber
Aggregation

Returns the population standard deviation of values in a numeric column. Optional GROUP_BY computes within each partition.

Signatures
  • STD_DEVIATION{[numCol]}
  • STD_DEVIATION{[numCol], GROUP_BY([stringCol])}
  • STD_DEVIATION{COL('numCol')}
Examples
  • STD_DEVIATION{[numCol]}
  • STD_DEVIATION{[numCol], GROUP_BY([stringCol])}
Operands
number

SUMIF

Sum IfAggregationnumber
Aggregation

Returns sum of a numeric column over the rows that match the predicate (an ordinary boolean expression).

Signatures
  • SUMIF{[numCol], <predicate>}
Examples
  • SUMIF{[notional], [currency] = "USD"}
  • SUMIF{[price], [rating] >= 5 AND [region] = "EMEA"}
Operands
number, boolean

WHERE

WhereAggregation
Aggregation

Restricts which rows contribute. Inside an aggregation brace call it filters that call; after an expression it scopes every aggregation in it. Inside an observable brace call (often with ALL_ROWS()) it filters which rows' histories contribute. The predicate is an ordinary boolean expression evaluated per row.

Signatures
  • <aggregation>{[col] WHERE <boolean_query>}
  • <expression> WHERE <boolean_query>
  • <observable>{[col] WHERE <boolean_query>, WITHIN(<duration>), ALL_ROWS()}
Examples
  • SUM{[numCol]} > 100 WHERE [stringCol] = "open"
  • AVG{[numCol]} WHERE [boolCol] = TRUE
  • COUNT{[numCol]} > 5 WHERE QUERY("myNamedQuery")
  • CHANGE_COUNT{[numCol] WHERE [stringCol] = 'FX', WITHIN(1m), ALL_ROWS()}

CUMULATIVE

CumulativeAggregation
Aggregation

Turns the aggregation into a running (cumulative) value ordered by the given column: each row receives the aggregate of the rows up to and including itself. Accepted by SUM, AVG, MIN, MAX, COUNT and by custom aggregations that declare cumulative support. Combine with GROUP_BY as a sibling clause to restart per group.

Signatures
  • SUM{[numCol], CUMULATIVE([dateCol])}
  • AVG|MIN|MAX|COUNT{[numCol], CUMULATIVE([dateCol])}
Examples
  • SUM{[numCol], CUMULATIVE([dateCol])}
  • AVG{[numCol], CUMULATIVE([dateCol])}
  • MIN{[numCol], CUMULATIVE([dateCol])}
  • MAX{[numCol], CUMULATIVE([dateCol])}
  • COUNT{[numCol], CUMULATIVE([dateCol])}
  • SUM{[numCol], GROUP_BY([stringCol]), CUMULATIVE([dateCol])}

OVER

OverAggregation
Aggregation

Orders the rows a window function reads (number or date column). Required by FIRST, LAST, LAG, LEAD and RANK. Cumulative aggregations use CUMULATIVE instead.

Signatures
  • OVER([dateCol])
  • OVER([numCol])
  • OVER(COL('dateCol'))
Examples
  • OVER([dateCol])
  • OVER([numCol])
  • LAG{[numCol], 1, OVER([dateCol])}

GROUP_BY

Group ByAggregation
Aggregation

Partitions an aggregation (or window function) by one or more columns so each distinct key is computed separately. Pass as a clause on the aggregation (e.g. SUM, AVG, COUNT) or window function (e.g. FIRST, LAG, RANK) — including as a sibling of CUMULATIVE.

Signatures
  • GROUP_BY([stringCol])
  • GROUP_BY([stringCol], [dateCol])
  • GROUP_BY(COL('stringCol'))
Examples
  • SUM{[numCol], GROUP_BY([stringCol])}
  • AVG{[numCol], GROUP_BY([stringCol])}
  • COUNT{[numCol], GROUP_BY([stringCol], [dateCol])}
  • FIRST{[numCol], OVER([dateCol]), GROUP_BY([stringCol])}
  • SUM{[numCol], GROUP_BY([stringCol]), CUMULATIVE([dateCol])}

WEIGHT

WeightOperandAggregation
Aggregation

Supplies a numeric weight column for a weighted aggregation (e.g. AVG{[numCol], WEIGHT([weightCol])}). Accepted by AVG and by custom aggregations that declare weight support.

Signatures
  • WEIGHT([numCol])
  • WEIGHT(COL('numCol'))
Examples
  • AVG{[numCol], WEIGHT([weightCol])}
  • AVG{[numCol], WEIGHT([weightCol]), GROUP_BY([stringCol])}

ADDED_AT

Added AtObservabledate
Observable

The instant the row was added to the grid, as a date. Null for rows that were already present when the grid loaded. No column input and no timeframe clauses.

Signatures
  • ADDED_AT{}
Examples
  • ADDED_AT{}
  • ADDED_AT{} > DATE("2026-01-01")
  • IS_TODAY(ADDED_AT{})

ALL_ROWS

All RowsObservable
Observable

All-rows scope for a live (observable) function: one shared history across all rows (passing WHERE, if any) instead of one per row. The value is the same on every row.

Signatures
  • ALL_ROWS()
Examples
  • CHANGE_COUNT{[numCol], WITHIN(1m), ALL_ROWS()}
  • CHANGE_COUNT{[numCol] WHERE [stringCol] = 'FX', WITHIN(1m), ALL_ROWS()}
  • NET_CHANGE{[numCol], WITHIN(15m), ALL_ROWS()}
  • NO_CHANGES{ANY_COL(), WITHIN(5h), ALL_ROWS()}

ANY_COL

Any ColumnObservable
Observable

Watch every column instead of one: a change to any column counts (ANY_COL()), or to any of the listed columns (ANY_COL([bid], [ask])). Takes the place of the [col] input of CHANGE_COUNT, NO_CHANGES, SINCE_CHANGE and CHANGED_AT. Calculated Column recomputations never count.

Signatures
  • ANY_COL()
  • ANY_COL([col], [col], …)
Examples
  • NO_CHANGES{ANY_COL(), WITHIN(1m)}
  • NO_CHANGES{ANY_COL(), WITHIN(5h), ALL_ROWS()}
  • CHANGE_COUNT{ANY_COL([numCol], [stringCol]), WITHIN(1m)}
  • SINCE_CHANGE{ANY_COL()}

CHANGE_COUNT

Change CountObservablenumber
Observable

How many times the cell changed — in the sliding timeframe (WITHIN / LAST_N) or since the grid loaded. Returns a number. Per row by default; ALL_ROWS() counts changes of the column across all rows. ANY_COL() counts changes of any column (ANY_COL([a], [b]) of the listed columns) instead of one. Optional TRIGGER limits which change origins count; WHERE filters which rows contribute under ALL_ROWS().

Signatures
  • CHANGE_COUNT{[col]}
  • CHANGE_COUNT{[col], WITHIN(<duration>)}
  • CHANGE_COUNT{[col], LAST_N(<n>)}
  • CHANGE_COUNT{[col], WITHIN(<duration>), ALL_ROWS()}
  • CHANGE_COUNT{ANY_COL(), WITHIN(<duration>)}
  • CHANGE_COUNT{ANY_COL([col], [col]), WITHIN(<duration>), ALL_ROWS()}
  • CHANGE_COUNT{[col], TRIGGER('edit' | 'tick' | 'undo' | 'calculated')}
  • CHANGE_COUNT{[col] WHERE <boolean_query>, WITHIN(<duration>), ALL_ROWS()}
Examples
  • CHANGE_COUNT{[numCol], WITHIN(5m)}
  • CHANGE_COUNT{[numCol], WITHIN(5m)} >= 3
  • CHANGE_COUNT{[numCol], TRIGGER('edit')}
  • CHANGE_COUNT{[numCol] WHERE [stringCol] = 'FX', WITHIN(1m), ALL_ROWS()}
  • CHANGE_COUNT{ANY_COL(), WITHIN(1m)}
Operands
any?

CHANGED_AT

Changed AtObservabledate
Observable

The instant the cell (or, with ANY_COL(), any column) last changed, as a date. Null until the first change since the grid loaded. Per row by default; ALL_ROWS() reads the last change anywhere in the grid.

Signatures
  • CHANGED_AT{[col]}
  • CHANGED_AT{[col], ALL_ROWS()}
  • CHANGED_AT{ANY_COL()}
  • CHANGED_AT{[col], TRIGGER('edit')}
Examples
  • CHANGED_AT{[numCol]}
  • CHANGED_AT{ANY_COL()}
  • IS_TODAY(CHANGED_AT{[numCol]})
Operands
any?

HIGHEST

HighestObservable
Observable

Highest value the cell has taken in the timeframe (or since the grid loaded). Returns the same type as the watched column (number or date). Null until the cell changes. Accepts WITHIN, LAST_N, ALL_ROWS, TRIGGER and WHERE.

Signatures
  • HIGHEST{[col]}
  • HIGHEST{[col], WITHIN(<duration>)}
  • HIGHEST{[col], LAST_N(<n>)}
  • HIGHEST{[col], WITHIN(<duration>), ALL_ROWS()}
Examples
  • HIGHEST{[numCol], WITHIN(1d)}
  • [numCol] = HIGHEST{[numCol], WITHIN(1d)}
  • HIGHEST{[numCol], LAST_N(20)} - [numCol]
  • [dateCol] = HIGHEST{[dateCol], WITHIN(7d)}
Operands
any

LAST_N

Last NObservable
Observable

Sliding count timeframe of a live (observable) function: only the last n change events count, however old. Never expires on the clock (unlike WITHIN).

Signatures
  • LAST_N(<n>)
Examples
  • LOWEST{[numCol], LAST_N(50)}
  • CHANGE_COUNT{[numCol], LAST_N(20)}
  • PERCENT_CHANGE{[numCol], LAST_N(10)}
  • ROWS_REMOVED{LAST_N(20)}

LOWEST

LowestObservable
Observable

Lowest value the cell has taken in the timeframe (or since the grid loaded). Returns the same type as the watched column (number or date). Null until the cell changes. Accepts WITHIN, LAST_N, ALL_ROWS, TRIGGER and WHERE.

Signatures
  • LOWEST{[col]}
  • LOWEST{[col], WITHIN(<duration>)}
  • LOWEST{[col], LAST_N(<n>)}
  • LOWEST{[col], WITHIN(<duration>), ALL_ROWS()}
Examples
  • LOWEST{[numCol], WITHIN(1d)}
  • [numCol] = LOWEST{[numCol], WITHIN(1d)}
  • [numCol] - LOWEST{[numCol], LAST_N(50)}
  • [dateCol] = LOWEST{[dateCol], WITHIN(30d)}
Operands
any

NET_CHANGE

Net ChangeObservablenumber
Observable

Current value minus the value the cell had at the start of the window (or when the grid loaded). Returns a number: positive when the cell went up, negative when it went down; null while the cell has not changed. Accepts WITHIN, LAST_N, ALL_ROWS, TRIGGER and WHERE.

Signatures
  • NET_CHANGE{[numCol]}
  • NET_CHANGE{[numCol], WITHIN(<duration>)}
  • NET_CHANGE{[numCol], LAST_N(<n>)}
  • NET_CHANGE{[numCol], WITHIN(<duration>), ALL_ROWS()}
  • NET_CHANGE{[numCol], TRIGGER('tick')}
Examples
  • NET_CHANGE{[numCol], WITHIN(1h)}
  • NET_CHANGE{[numCol], WITHIN(1h)} > 10
  • ABS(NET_CHANGE{[numCol], LAST_N(5)})
  • NET_CHANGE{[numCol], WITHIN(15m), ALL_ROWS()}
Operands
any

NO_CHANGES

No ChangesObservableboolean
Observable

True when nothing in the watched column (or, with ANY_COL(), in any column) changed during the whole window. The window must have fully elapsed since the grid loaded (or the row was added), so it is false at startup and becomes true only after a full window of silence. Without WITHIN: true while the cell has never changed. Per row by default; ALL_ROWS() watches the whole grid. Accepts ANY_COL, WITHIN, ALL_ROWS, TRIGGER and WHERE.

Signatures
  • NO_CHANGES{[col], WITHIN(<duration>)}
  • NO_CHANGES{[col], WITHIN(<duration>), ALL_ROWS()}
  • NO_CHANGES{ANY_COL(), WITHIN(<duration>)}
  • NO_CHANGES{ANY_COL(), WITHIN(<duration>), ALL_ROWS()}
  • NO_CHANGES{ANY_COL([col], [col]), WITHIN(<duration>), ALL_ROWS()}
  • NO_CHANGES{[col]}
Examples
  • NO_CHANGES{[numCol], WITHIN(30s)}
  • NO_CHANGES{ANY_COL(), WITHIN(1m)}
  • NO_CHANGES{ANY_COL(), WITHIN(5h), ALL_ROWS()}
  • NO_CHANGES{ANY_COL([numCol], [stringCol]), WITHIN(10s), ALL_ROWS()}
  • NO_CHANGES{[numCol], WITHIN(1m), TRIGGER('tick')}
Operands
any?

PREVIOUS

PreviousObservable
Observable

The value the cell had before its last change (or before its last n changes). Returns the same type as the watched column. Null while the cell has not changed that many times. Optional ALL_ROWS / TRIGGER / WHERE; no WITHIN or LAST_N (lookback is the positional n).

Signatures
  • PREVIOUS{[col]}
  • PREVIOUS{[col], <n>}
  • PREVIOUS{[col], ALL_ROWS()}
  • PREVIOUS{[col], TRIGGER('edit')}
Examples
  • PREVIOUS{[numCol]}
  • [numCol] - PREVIOUS{[numCol]}
  • [numCol] > PREVIOUS{[numCol], 3}
  • PREVIOUS{[numCol], TRIGGER('tick')}
Operands
any, number?

ROW_AGE

Row AgeObservableduration
Observable

How long ago the row was added to the grid, as a duration; keeps growing on the clock. Null for rows that were already present when the grid loaded. No column input and no timeframe clauses.

Signatures
  • ROW_AGE{}
Examples
  • ROW_AGE{}
  • ROW_AGE{} < 30s
  • ROW_AGE{} > 1h

ROWS_ADDED

Rows AddedObservablenumber
Observable

How many rows were added to the grid in the timeframe (or since load). Always grid-scoped. WHERE filters which added rows count; WITHIN / LAST_N set the window.

Signatures
  • ROWS_ADDED{}
  • ROWS_ADDED{WITHIN(<duration>)}
  • ROWS_ADDED{LAST_N(<n>)}
  • ROWS_ADDED{WHERE <boolean_query>, WITHIN(<duration>)}
  • ROWS_ADDED{WHERE <boolean_query>, LAST_N(<n>)}
Examples
  • ROWS_ADDED{WITHIN(1m)}
  • ROWS_ADDED{WITHIN(1m)} > 10
  • ROWS_ADDED{LAST_N(50)}
  • ROWS_ADDED{WHERE [stringCol] = 'FX', WITHIN(10s)} >= 1

ROWS_REMOVED

Rows RemovedObservablenumber
Observable

How many rows were removed from the grid in the timeframe (or since load). Always grid-scoped. WHERE filters which removed rows count; WITHIN / LAST_N set the window.

Signatures
  • ROWS_REMOVED{}
  • ROWS_REMOVED{WITHIN(<duration>)}
  • ROWS_REMOVED{LAST_N(<n>)}
  • ROWS_REMOVED{WHERE <boolean_query>, WITHIN(<duration>)}
  • ROWS_REMOVED{WHERE <boolean_query>, LAST_N(<n>)}
Examples
  • ROWS_REMOVED{WITHIN(1m)}
  • ROWS_REMOVED{WITHIN(1m)} > 0
  • ROWS_REMOVED{LAST_N(20)}
  • ROWS_REMOVED{WHERE [stringCol] = 'Ford', WITHIN(10s)}

SINCE_CHANGE

Since ChangeObservableduration
Observable

How long ago the cell (or, with ANY_COL(), any column) last changed, as a duration; keeps growing on the clock. Null until the first change since the grid loaded. Per row by default; ALL_ROWS() reads the last change anywhere in the grid. For "no changes for x" rules prefer NO_CHANGES{…}.

Signatures
  • SINCE_CHANGE{[col]}
  • SINCE_CHANGE{[col], ALL_ROWS()}
  • SINCE_CHANGE{ANY_COL()}
  • SINCE_CHANGE{ANY_COL(), ALL_ROWS()}
  • SINCE_CHANGE{[col], TRIGGER('tick')}
Examples
  • SINCE_CHANGE{[numCol]}
  • SINCE_CHANGE{[numCol]} > 30s
  • SINCE_CHANGE{ANY_COL()}
  • SINCE_CHANGE{ANY_COL(), ALL_ROWS()}
Operands
any?

TRIGGER

TriggerObservable
Observable

Which change triggers a live (observable) function counts: 'edit', 'tick', 'undo' or 'calculated'. Default: every recorded change. Pass one or more origins.

Signatures
  • TRIGGER('edit')
  • TRIGGER('tick')
  • TRIGGER('undo')
  • TRIGGER('calculated')
  • TRIGGER('edit', 'tick')
Examples
  • CHANGE_COUNT{[numCol], TRIGGER('edit')}
  • CHANGE_COUNT{[numCol], WITHIN(1m), TRIGGER('tick')}
  • PREVIOUS{[numCol], TRIGGER('edit')}
  • NET_CHANGE{[numCol], WITHIN(5m), TRIGGER('tick', 'undo')}

WITHIN

WithinObservable
Observable

Sliding timeframe of a live (observable) function: only changes in the last <duration> count, e.g. WITHIN(5m). Old changes age out, so the value can change on the clock while nothing happens in the grid. Duration literals: 250ms, 30s, 5m, 1h, 1d.

Signatures
  • WITHIN(<duration>)
Examples
  • CHANGE_COUNT{[numCol], WITHIN(5m)}
  • NET_CHANGE{[numCol], WITHIN(1h)}
  • HIGHEST{[numCol], WITHIN(1d)}
  • ROWS_ADDED{WITHIN(10s)}