slope()
Calculates the slope of the X/Y linear regression line by group. It eliminates expression pairs where either expression in the pair returns null or a non-numeric value.
Syntax
slope(EXPR_X, EXPR_Y)
Required Parameter
EXPR_X
- Numeric expression to calculate the slope of the linear regression line.
EXPR_Y
- Second numeric expression to calculate the slope of the linear regression line.