Skip to content

CovarSamp

Description

CovarSamp returns the sample covariance of two numeric expressions.

Syntax

CovarSamp(value1, value2)

Parameters

Parameter Required Type Description
value1 Yes Field or expression First numeric expression.
value2 Yes Field or expression Second numeric expression.

Notes

Aggregate functions are commonly used in metric definitions and grouped query results.

Example

CovarSamp(SalesAmount, Profit)

The expression returns the calculated result according to the current query context.