Computes the variance among all values in a column. Input column can be of Integer or Decimal. If no numeric values are detected in the input column, the function returns
The variance of a set of values attempts to measure the spread in values around the mean. A variance of zero means that all values are the same, and a small variance means that the values are closely bunched together. A high value for variance indicates that the numbers are spread out widely. Variance is always a positive value.
Var(X) = [Sum ((X - mean(X))2)] / Count(X)
Variance comes in two flavors: population variance and sample variance.
The square root of variance is standard deviation, which is used to measure variance under the assumption of a bell curve distribution. See STDEV Function.
If a row contains a missing or null value, it is not factored into the calculation.
For a version of this function computed over a rolling window of rows, see ROLLINGVAR Function.
pivot value:VAR(myRating) group:postal_code limit:1
Output: Generates a new table containing the unique values of the
postal_code column and the variance of the group of values from the
myRating column for the
postal_code value. The
limit parameter defines the maximum number of output columns.
pivot value:VAR(function_col_ref) [group:group_col_ref] [limit:limit_count]
|function_col_ref||Y||string||Name of column to which to apply the function|
For more information on the
limit parameters, see Pivot Transform.
Name of the column the values of which you want to calculate the variance. Column must contain Integer or Decimal values.
|Required?||Data Type||Example Value|
|Yes||String (column reference)|