sisense.com
✅ You are viewing documentation for the latest version of Compose SDK.
Version:

Function varp

varp( attribute, name?, format?): BaseMeasure

Calculates the variance of the given numeric attribute across the entire population (all items).

Parameters

ParameterTypeDescription
attributeAttributeAttribute to aggregate
name?stringOptional name for the new measure
format?stringOptional numeric formatting to apply using a Numeral.js format string. Format only applies to queries, visualizations (e.g charts) may apply their own formatting to query results.

Returns

BaseMeasure

A measure instance

Example

Calculate the variance (population) of the cost attribute.

measureFactory.varp(DM.Commerce.Cost)
Last Updated: