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
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).
Showing 152 of 152 functions
$SCOPE
ScopeGeneralStandardany
$SCOPE
ScopeGeneralStandardanyReturns the value of the column in the current scope (e.g. Format Column / Alert column context).
$SCOPE
$SCOPE > 10IS_BLANK($SCOPE)
ABS
AbsNumericStandardnumber
ABS
AbsNumericStandardnumberReturns the absolute value of a given number.
ABS(a: number)
ABS([numCol])ABS(-12.5)
numberABSOLUTE_CHANGE
Absolute ChangeStandardnumber
ABSOLUTE_CHANGE
Absolute 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, 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, numberAND
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, booleanANY_CHANGE
Any ChangeStandardboolean
ANY_CHANGE
Any 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)
anyANY_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)
textnumberAVG
AvgNumericStandardAggregationnumber
AVG
AvgNumericStandardAggregationnumberReturns the average of one or more numbers.
AVG(number, number, ...number)
AVG([numCol], 5)AVG(10, 20, 30)
number[]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.
AVG{[numCol]}AVG{[numCol], GROUP_BY([stringCol])}AVG{[numCol], WEIGHT([weightCol])}AVG{[numCol], WEIGHT([weightCol]), GROUP_BY([stringCol])}
AVG{[numCol]}AVG{[numCol], GROUP_BY([stringCol])}AVG{[numCol], WEIGHT([weightCol])}AVG{[numCol], WEIGHT([weightCol]), GROUP_BY([stringCol])}
numberCASE
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
CEILING
CeilingNumericStandardnumber
CEILING
CeilingNumericStandardnumberReturns the smallest integer greater than or equal to the given number.
CEILING(a: number)
CEILING([numCol])CEILING(2.1)
numberCOALESCE
CoalesceGeneralStandardany
COALESCE
CoalesceGeneralStandardanyReturns the first argument that is not null or undefined.
COALESCE(value, value, ...value)
COALESCE([numCol], [numCol], 0)COALESCE([stringCol], "n/a")
COL
ColGeneralStandardany
COL
ColGeneralStandardanyReturns 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")
textCONCAT
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, textCURRENT_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, dateDIV
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, numberEDATE
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())
dateENDS_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, textEOMONTH
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, numberEQ
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, booleanFALSE
FalseLogicalStandardboolean
FALSE
FalseLogicalStandardbooleanReturns the boolean value false (written as the FALSE literal).
FALSE
[boolCol] = FALSEIS_BLANK([stringCol]) ? FALSE : TRUE
FIELD
FieldGeneralStandardany
FIELD
FieldGeneralStandardanyReturns 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"
textFLOOR
FloorNumericStandardnumber
FLOOR
FloorNumericStandardnumberReturns the largest integer less than or equal to the given number.
FLOOR(a: number)
FLOOR([numCol])FLOOR(2.9)
numberGT
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, dateIF
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, anyIN
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[]IS_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_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_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_NEGATIVE
NegativeNumericStandardboolean
IS_NEGATIVE
NegativeNumericStandardbooleanReturns true if the number is less than zero.
IS_NEGATIVE(a: number)
IS_NEGATIVE([numCol])IS_NEGATIVE($SCOPE)
numberIS_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_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])
anyIS_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_POSITIVE
PositiveNumericStandardboolean
IS_POSITIVE
PositiveNumericStandardbooleanReturns true if the number is greater than zero.
IS_POSITIVE(a: number)
IS_POSITIVE([numCol])IS_POSITIVE($SCOPE)
numberIS_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])
dateLEFT
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")
textLT
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, dateMAX
MaxNumericStandardAggregationnumber
MAX
MaxNumericStandardAggregationnumberReturns the highest of one or more numbers.
MAX(number, number, ...number)
MAX([numCol], 5)MAX(10, 20, 3)
number[]Returns the maximum value in a numeric or date column. Optional GROUP_BY computes within each partition.
MAX{[numCol]}MAX{[dateCol]}MAX{[numCol], GROUP_BY([stringCol])}
MAX{[numCol]}MAX{[dateCol]}MAX{[numCol], GROUP_BY([stringCol])}
number | text | dateMID
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, numberMIN
MinNumericStandardAggregationnumber
MIN
MinNumericStandardAggregationnumberReturns the smallest of one or more numbers.
MIN(number, number, ...number)
MIN([numCol], 5)MIN(10, 20, 3)
number[]Returns the minimum value in a numeric or date column. Optional GROUP_BY computes within each partition.
MIN{[numCol]}MIN{[dateCol]}MIN{[numCol], GROUP_BY([stringCol])}
MIN{[numCol]}MIN{[dateCol]}MIN{[numCol], GROUP_BY([stringCol])}
number | text | dateMOD
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, numberMONTH
MonthDateStandardnumber
MONTH
MonthDateStandardnumberReturns the month as a number (1–12).
MONTH(input: date)
MONTH([dateCol])MONTH([dateCol]) = MONTH(CURRENT_DAY())
dateNA
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")
NEQ
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, booleanNETWORKDAYS
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, dateNOT
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]))
booleanNOT_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, textNOT_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[]NOW
NowDateStandarddate
NOW
NowDateStandarddateReturns the current date and time. Prefer CURRENT_DAY when you only need today's date at midnight.
NOW()
[dateCol] > NOW()NOW()
NULL
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, booleanPERCENT_CHANGE
Percent ChangeStandardObservablenumber
PERCENT_CHANGE
Percent ChangeStandardObservablenumberReturns 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, textPercentage 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.
PERCENT_CHANGE{[numCol]}PERCENT_CHANGE{[numCol], WITHIN(<duration>)}PERCENT_CHANGE{[numCol], LAST_N(<n>)}PERCENT_CHANGE{[numCol], WITHIN(<duration>), ALL_ROWS()}
PERCENT_CHANGE{[numCol], WITHIN(1h)}PERCENT_CHANGE{[numCol], WITHIN(1h)} > 5ABS(PERCENT_CHANGE{[numCol], LAST_N(10)}) >= 2PERCENT_CHANGE{[numCol], WITHIN(15m), ALL_ROWS()}
anyPOW
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*NumericStandardAggregationnumber
PRODUCT
Product*NumericStandardAggregationnumberReturns 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[]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.
PRODUCT{[numCol]}PRODUCT{[numCol], GROUP_BY([stringCol])}PRODUCT{COL('numCol')}
PRODUCT{[numCol]}PRODUCT{[numCol], GROUP_BY([stringCol])}
numberQUARTER
QuarterDateStandardnumber
QUARTER
QuarterDateStandardnumberReturns the calendar quarter as a number (1–4).
QUARTER(input: date)
QUARTER([dateCol])QUARTER([dateCol]) = QUARTER(CURRENT_DAY())
dateQUERY
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")
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, numberROUND
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)
numberSTART_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())
dateSTARTS_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
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, numberSUB_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, numberSUM
Sum+NumericStandardAggregationnumber
SUM
Sum+NumericStandardAggregationnumberReturns 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[]Returns the sum of non-empty values in a numeric column. Optional GROUP_BY computes the sum within each partition.
SUM{[numCol]}SUM{[numCol], GROUP_BY([stringCol])}SUM{COL('numCol')}
SUM{[numCol]}SUM{[numCol], GROUP_BY([stringCol])}
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[]TO_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"))
TRIM
TrimTextStandardstring
TRIM
TrimTextStandardstringReturns the text with leading and trailing whitespace removed.
TRIM(text: text)
TRIM([stringCol])TRIM(" hello ")
textTRUE
TrueLogicalStandardboolean
TRUE
TrueLogicalStandardbooleanReturns the boolean value true (written as the TRUE literal).
TRUE
[boolCol] = TRUE[stringCol] = "open" ? TRUE : FALSE
UPPER
UpperTextStandardstring
UPPER
UpperTextStandardstringReturns the text converted to upper case.
UPPER(a: text)
UPPER([stringCol])UPPER("hello")
textVAR
VarReferenceStandardany
VAR
VarReferenceStandardanyReturns 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])
WEEK
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_DIFF
Absolute DiffAggregationnumber
ABSOLUTE_DIFF
Absolute DiffAggregationnumberReturns 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).
ABSOLUTE_DIFF([numCol], AVG|MEDIAN|MODE|MIN|MAX{[numCol]})ABSOLUTE_DIFF([numCol], LAG|LEAD|FIRST|LAST{[numCol], OVER([dateCol])})
ABSOLUTE_DIFF([numCol], MAX{[numCol]})ABSOLUTE_DIFF([numCol], AVG{[numCol], GROUP_BY([stringCol])})ABSOLUTE_DIFF([numCol], LAG{[numCol], OVER([dateCol])})
number, anyAVGIF
Average IfAggregationnumber
AVGIF
Average IfAggregationnumberReturns arithmetic mean of a numeric column over the rows that match the predicate (an ordinary boolean expression).
AVGIF{[numCol], <predicate>}
AVGIF{[price], [region] = "EMEA"}AVGIF{[notional], [currency] = "USD" AND [notional] > 0}
number, booleanCOUNT
CountAggregationnumber
COUNT
CountAggregationnumberReturns the count of non-empty values in a column. Optional GROUP_BY computes within each partition.
COUNT{[numCol]}COUNT{[stringCol]}COUNT{[numCol], GROUP_BY([stringCol])}
COUNT{[numCol]}COUNT{[stringCol]}COUNT{[numCol], GROUP_BY([stringCol])}
anyCOUNTIF
Count IfAggregationnumber
COUNTIF
Count IfAggregationnumberReturns count of non-empty values in a column over the rows that match the predicate (an ordinary boolean expression).
COUNTIF{[col], <predicate>}
COUNTIF{[id], [status] = "Open"}COUNTIF{[id], [notional] > 0 OR [flagged] = TRUE}
any, booleanDISTINCT
DistinctAggregationnumber
DISTINCT
DistinctAggregationnumberReturns how many distinct values appear in a column. Optional GROUP_BY computes within each partition.
DISTINCT{[numCol]}DISTINCT{[stringCol]}DISTINCT{[numCol], GROUP_BY([stringCol])}
DISTINCT{[numCol]}DISTINCT{[stringCol]}DISTINCT{[stringCol], GROUP_BY([stringCol])}
number | text | dateFIRST
FirstAggregation
FIRST
FirstAggregationReturns the first value of the given column when rows are ordered by OVER. Optional GROUP_BY computes that first value within each partition.
FIRST{[numCol], OVER([dateCol])}FIRST{[numCol], OVER([dateCol]), GROUP_BY([stringCol])}
FIRST{[numCol], OVER([dateCol])}FIRST{[stringCol], OVER([dateCol]), GROUP_BY([stringCol])}
number | text | dateLAG
Lag (Previous)Aggregation
LAG
Lag (Previous)AggregationReturns 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.
LAG{[numCol], offset: number, OVER([dateCol])}LAG{[numCol], offset: number, OVER([dateCol]), GROUP_BY([stringCol])}
LAG{[numCol], 1, OVER([dateCol])}LAG{[numCol], 2, OVER([dateCol]), GROUP_BY([stringCol])}
any, number?LAST
LastAggregation
LAST
LastAggregationReturns the last value of the given column when rows are ordered by OVER. Optional GROUP_BY computes that last value within each partition.
LAST{[numCol], OVER([dateCol])}LAST{[numCol], OVER([dateCol]), GROUP_BY([stringCol])}
LAST{[numCol], OVER([dateCol])}LAST{[stringCol], OVER([dateCol]), GROUP_BY([stringCol])}
number | text | dateLEAD
Lead (Next)Aggregation
LEAD
Lead (Next)AggregationReturns 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.
LEAD{[numCol], offset: number, OVER([dateCol])}LEAD{[numCol], offset: number, OVER([dateCol]), GROUP_BY([stringCol])}
LEAD{[numCol], 1, OVER([dateCol])}LEAD{[numCol], 2, OVER([dateCol]), GROUP_BY([stringCol])}
any, number?MEDIAN
MedianAggregationnumber
MEDIAN
MedianAggregationnumberReturns the median of values in a numeric column. Optional GROUP_BY computes within each partition.
MEDIAN{[numCol]}MEDIAN{[numCol], GROUP_BY([stringCol])}MEDIAN{COL('numCol')}
MEDIAN{[numCol]}MEDIAN{[numCol], GROUP_BY([stringCol])}
numberMODE
ModeAggregation
MODE
ModeAggregationReturns the most frequent value in a number, text, or date column. Optional GROUP_BY computes within each partition.
MODE{[numCol]}MODE{[stringCol]}MODE{[numCol], GROUP_BY([stringCol])}
MODE{[numCol]}MODE{[stringCol]}MODE{[stringCol], GROUP_BY([stringCol])}
number | text | dateONLY
OnlyAggregation
ONLY
OnlyAggregationReturns 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.
ONLY{[numCol]}ONLY{[stringCol]}ONLY{[stringCol], GROUP_BY([stringCol])}
ONLY{[numCol]}ONLY{[stringCol]}ONLY{[stringCol], GROUP_BY([stringCol])}
number | text | datePERCENT_DIFF
Percent DiffAggregationnumber
PERCENT_DIFF
Percent DiffAggregationnumberReturns 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).
PERCENT_DIFF([numCol], AVG|MEDIAN|MODE|MIN|MAX{[numCol]})PERCENT_DIFF([numCol], LAG|LEAD|FIRST|LAST{[numCol], OVER([dateCol])})
PERCENT_DIFF([numCol], MAX{[numCol]})PERCENT_DIFF([numCol], AVG{[numCol], GROUP_BY([stringCol])})PERCENT_DIFF([numCol], LAG{[numCol], OVER([dateCol])})
number, anyPERCENTAGE
PercentageAggregationnumber
PERCENTAGE
PercentageAggregationnumberReturns 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.
PERCENTAGE([numCol])PERCENTAGE([numCol], GROUP_BY([stringCol]))PERCENTAGE([numCol], SUM{[numCol]})PERCENTAGE([numCol], SUM{[numCol], GROUP_BY([stringCol])})
PERCENTAGE([numCol])PERCENTAGE([numCol], GROUP_BY([stringCol]))PERCENTAGE([numCol], SUM{[weightCol]})PERCENTAGE([numCol], SUM{[weightCol], GROUP_BY([stringCol])})
number, any?PERCENTILE
PercentileAggregationnumber
PERCENTILE
PercentileAggregationnumberReturns 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.
PERCENTILE{[numCol]}PERCENTILE{[numCol], GROUP_BY([stringCol])}
PERCENTILE{[numCol]}PERCENTILE{[numCol], GROUP_BY([stringCol])}
numberQUANT
QuantAggregationnumber
QUANT
QuantAggregationnumberReturns 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.
QUANT{[numCol], q: number}QUANT{[numCol], q: number, GROUP_BY([stringCol])}QUANT{COL('numCol'), q: number}
QUANT{[numCol], 4}QUANT{[numCol], 5}QUANT{[numCol], 10}QUANT{[numCol], 100}QUANT{[numCol], 4, GROUP_BY([stringCol])}
number, numberQUARTILE
QuartileAggregationnumber
QUARTILE
QuartileAggregationnumberReturns which quartile (1–4) each row falls into for the given numeric column. Equivalent to QUANT{[numCol], 4}. Optional GROUP_BY partitions the ranking.
QUARTILE{[numCol]}QUARTILE{[numCol], GROUP_BY([stringCol])}
QUARTILE{[numCol]}QUARTILE{[numCol], GROUP_BY([stringCol])}
numberRANK
RankAggregationnumber
RANK
RankAggregationnumberReturns 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.
RANK{OVER([dateCol])}RANK{OVER([numCol])}RANK{OVER([dateCol]), GROUP_BY([stringCol])}
RANK{OVER([dateCol])}RANK{OVER([numCol]), GROUP_BY([stringCol])}
STD_DEVIATION
Std DeviationAggregationnumber
STD_DEVIATION
Std DeviationAggregationnumberReturns the population standard deviation of values in a numeric column. Optional GROUP_BY computes within each partition.
STD_DEVIATION{[numCol]}STD_DEVIATION{[numCol], GROUP_BY([stringCol])}STD_DEVIATION{COL('numCol')}
STD_DEVIATION{[numCol]}STD_DEVIATION{[numCol], GROUP_BY([stringCol])}
numberSUMIF
Sum IfAggregationnumber
SUMIF
Sum IfAggregationnumberReturns sum of a numeric column over the rows that match the predicate (an ordinary boolean expression).
SUMIF{[numCol], <predicate>}
SUMIF{[notional], [currency] = "USD"}SUMIF{[price], [rating] >= 5 AND [region] = "EMEA"}
number, booleanWHERE
WhereAggregation
WHERE
WhereAggregationRestricts 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.
<aggregation>{[col] WHERE <boolean_query>}<expression> WHERE <boolean_query><observable>{[col] WHERE <boolean_query>, WITHIN(<duration>), ALL_ROWS()}
SUM{[numCol]} > 100 WHERE [stringCol] = "open"AVG{[numCol]} WHERE [boolCol] = TRUECOUNT{[numCol]} > 5 WHERE QUERY("myNamedQuery")CHANGE_COUNT{[numCol] WHERE [stringCol] = 'FX', WITHIN(1m), ALL_ROWS()}
CUMULATIVE
CumulativeAggregation
CUMULATIVE
CumulativeAggregationTurns 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.
SUM{[numCol], CUMULATIVE([dateCol])}AVG|MIN|MAX|COUNT{[numCol], CUMULATIVE([dateCol])}
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
OVER
OverAggregationOrders the rows a window function reads (number or date column). Required by FIRST, LAST, LAG, LEAD and RANK. Cumulative aggregations use CUMULATIVE instead.
OVER([dateCol])OVER([numCol])OVER(COL('dateCol'))
OVER([dateCol])OVER([numCol])LAG{[numCol], 1, OVER([dateCol])}
GROUP_BY
Group ByAggregation
GROUP_BY
Group ByAggregationPartitions 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.
GROUP_BY([stringCol])GROUP_BY([stringCol], [dateCol])GROUP_BY(COL('stringCol'))
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
WEIGHT
WeightOperandAggregationSupplies 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.
WEIGHT([numCol])WEIGHT(COL('numCol'))
AVG{[numCol], WEIGHT([weightCol])}AVG{[numCol], WEIGHT([weightCol]), GROUP_BY([stringCol])}
ADDED_AT
Added AtObservabledate
ADDED_AT
Added AtObservabledateThe 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.
ADDED_AT{}
ADDED_AT{}ADDED_AT{} > DATE("2026-01-01")IS_TODAY(ADDED_AT{})
ALL_ROWS
All RowsObservable
ALL_ROWS
All RowsObservableAll-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.
ALL_ROWS()
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
ANY_COL
Any ColumnObservableWatch 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.
ANY_COL()ANY_COL([col], [col], …)
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
CHANGE_COUNT
Change CountObservablenumberHow 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().
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()}
CHANGE_COUNT{[numCol], WITHIN(5m)}CHANGE_COUNT{[numCol], WITHIN(5m)} >= 3CHANGE_COUNT{[numCol], TRIGGER('edit')}CHANGE_COUNT{[numCol] WHERE [stringCol] = 'FX', WITHIN(1m), ALL_ROWS()}CHANGE_COUNT{ANY_COL(), WITHIN(1m)}
any?CHANGED_AT
Changed AtObservabledate
CHANGED_AT
Changed AtObservabledateThe 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.
CHANGED_AT{[col]}CHANGED_AT{[col], ALL_ROWS()}CHANGED_AT{ANY_COL()}CHANGED_AT{[col], TRIGGER('edit')}
CHANGED_AT{[numCol]}CHANGED_AT{ANY_COL()}IS_TODAY(CHANGED_AT{[numCol]})
any?HIGHEST
HighestObservable
HIGHEST
HighestObservableHighest 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.
HIGHEST{[col]}HIGHEST{[col], WITHIN(<duration>)}HIGHEST{[col], LAST_N(<n>)}HIGHEST{[col], WITHIN(<duration>), ALL_ROWS()}
HIGHEST{[numCol], WITHIN(1d)}[numCol] = HIGHEST{[numCol], WITHIN(1d)}HIGHEST{[numCol], LAST_N(20)} - [numCol][dateCol] = HIGHEST{[dateCol], WITHIN(7d)}
anyLAST_N
Last NObservable
LAST_N
Last NObservableSliding count timeframe of a live (observable) function: only the last n change events count, however old. Never expires on the clock (unlike WITHIN).
LAST_N(<n>)
LOWEST{[numCol], LAST_N(50)}CHANGE_COUNT{[numCol], LAST_N(20)}PERCENT_CHANGE{[numCol], LAST_N(10)}ROWS_REMOVED{LAST_N(20)}
LOWEST
LowestObservable
LOWEST
LowestObservableLowest 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.
LOWEST{[col]}LOWEST{[col], WITHIN(<duration>)}LOWEST{[col], LAST_N(<n>)}LOWEST{[col], WITHIN(<duration>), ALL_ROWS()}
LOWEST{[numCol], WITHIN(1d)}[numCol] = LOWEST{[numCol], WITHIN(1d)}[numCol] - LOWEST{[numCol], LAST_N(50)}[dateCol] = LOWEST{[dateCol], WITHIN(30d)}
anyNET_CHANGE
Net ChangeObservablenumber
NET_CHANGE
Net ChangeObservablenumberCurrent 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.
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')}
NET_CHANGE{[numCol], WITHIN(1h)}NET_CHANGE{[numCol], WITHIN(1h)} > 10ABS(NET_CHANGE{[numCol], LAST_N(5)})NET_CHANGE{[numCol], WITHIN(15m), ALL_ROWS()}
anyNO_CHANGES
No ChangesObservableboolean
NO_CHANGES
No ChangesObservablebooleanTrue 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.
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]}
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')}
any?PREVIOUS
PreviousObservable
PREVIOUS
PreviousObservableThe 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).
PREVIOUS{[col]}PREVIOUS{[col], <n>}PREVIOUS{[col], ALL_ROWS()}PREVIOUS{[col], TRIGGER('edit')}
PREVIOUS{[numCol]}[numCol] - PREVIOUS{[numCol]}[numCol] > PREVIOUS{[numCol], 3}PREVIOUS{[numCol], TRIGGER('tick')}
any, number?ROW_AGE
Row AgeObservableduration
ROW_AGE
Row AgeObservabledurationHow 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.
ROW_AGE{}
ROW_AGE{}ROW_AGE{} < 30sROW_AGE{} > 1h
ROWS_ADDED
Rows AddedObservablenumber
ROWS_ADDED
Rows AddedObservablenumberHow 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.
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>)}
ROWS_ADDED{WITHIN(1m)}ROWS_ADDED{WITHIN(1m)} > 10ROWS_ADDED{LAST_N(50)}ROWS_ADDED{WHERE [stringCol] = 'FX', WITHIN(10s)} >= 1
ROWS_REMOVED
Rows RemovedObservablenumber
ROWS_REMOVED
Rows RemovedObservablenumberHow 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.
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>)}
ROWS_REMOVED{WITHIN(1m)}ROWS_REMOVED{WITHIN(1m)} > 0ROWS_REMOVED{LAST_N(20)}ROWS_REMOVED{WHERE [stringCol] = 'Ford', WITHIN(10s)}
SINCE_CHANGE
Since ChangeObservableduration
SINCE_CHANGE
Since ChangeObservabledurationHow 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{…}.
SINCE_CHANGE{[col]}SINCE_CHANGE{[col], ALL_ROWS()}SINCE_CHANGE{ANY_COL()}SINCE_CHANGE{ANY_COL(), ALL_ROWS()}SINCE_CHANGE{[col], TRIGGER('tick')}
SINCE_CHANGE{[numCol]}SINCE_CHANGE{[numCol]} > 30sSINCE_CHANGE{ANY_COL()}SINCE_CHANGE{ANY_COL(), ALL_ROWS()}
any?TRIGGER
TriggerObservable
TRIGGER
TriggerObservableWhich change triggers a live (observable) function counts: 'edit', 'tick', 'undo' or 'calculated'. Default: every recorded change. Pass one or more origins.
TRIGGER('edit')TRIGGER('tick')TRIGGER('undo')TRIGGER('calculated')TRIGGER('edit', 'tick')
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
WITHIN
WithinObservableSliding 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.
WITHIN(<duration>)
CHANGE_COUNT{[numCol], WITHIN(5m)}NET_CHANGE{[numCol], WITHIN(1h)}HIGHEST{[numCol], WITHIN(1d)}ROWS_ADDED{WITHIN(10s)}