NQRust Analytics
Modeling

Expression Reference

Every function available when building a calculated field, grouped by category.

This page lists the expressions available when building a calculated field. Each function is listed with its syntax, return type, and behavior.

Aggregations

FunctionSyntaxReturnsDescription
Averageavg(column)doubleReturns the average of the values in the column.
Countcount(column)bigintReturns the number of non-null rows in the selected data.
Maxmax(column)same as inputReturns the largest value in the column.
Minmin(column)same as inputReturns the smallest value in the column.
Sumsum(column)same as inputAdds up all values in the column.

Math functions

FunctionSyntaxReturnsDescription
Absoluteabs(column)same as inputReturns the absolute (positive) value of the column.
Cube rootcbrt(column)doubleReturns the cube root of the number.
Ceilceil(column)same as inputRounds a decimal up to the next integer.
Exponentialexp(column)doubleReturns Euler's number, e, raised to the power of the value.
Floorfloor(column)same as inputRounds a decimal down to the previous integer.
Lnln(column)doubleReturns the natural logarithm of the number.
Log10log10(column)doubleReturns the base-10 logarithm of the number.
Roundround(column)same as inputRounds the decimal to the nearest integer.
Signumsign(column)same as inputReturns the signum (sign) of the number.

String functions

FunctionSyntaxReturnsDescription
Lengthlength(column)bigintReturns the number of characters in the string.
Reversereverse(column)varbinaryReturns the string with its characters in reverse order.

On this page