Navigation
First value
Returns the value of a variable for the first row in a given analytic window. –> learn more
Return type
dynamic (input-dependent)
Parameters
@variable
true
-
@ignore_null
any of: IGNORE
, RESPECT
false
(Ignore nulls (default))
Lag
Returns the value of a variable on a preceding row within the analytic window –> learn more
Return type
dynamic (input-dependent)
Parameters
@variable
true
-
@literal
false
(1)
@default_value
false
(NULL)
Last value
Returns the value of a variable for the last row in a given analytic window. –> learn more
Return type
dynamic (input-dependent)
Parameters
@variable
true
-
@ignore_null
any of: IGNORE
, RESPECT
false
(Ignore nulls (default))
Lead
Returns the value of a variable on a subsequent row within the analytic window –> learn more
Return type
dynamic (input-dependent)
Parameters
@variable
true
-
@literal
false
(1)
@default_value
false
(NULL)
Nth value
Returns the value at the Nth row of a given window frame. –> learn more
Return type
dynamic (input-dependent)
Parameters
@variable
true
-
@literal
true
-
@ignore_null
any of: IGNORE
, RESPECT
false
(Ignore nulls (default))
Percentile (continuous)
Computes the specified percentile value for a variable within an ordered partition, with linear interpolation. –> learn more
Return type
float
Parameters
@variable
true
(variable)
@literal
true
(Value between [0, 1])
@ignore_null
any of: IGNORE
, RESPECT
false
(Ignore nulls (default))
Percentile (discrete)
Computes the specified percentile value for a variable within an ordered partition. Returns the first sorted value with cumulative distribution greater than or equal to the percentile. –> learn more
Return type
float
Parameters
@variable
true
(variable)
@literal
true
(Value between [0, 1])
@ignore_null
any of: IGNORE
, RESPECT
false
(Ignore nulls (default))
Last updated
Was this helpful?