Function varp
varp(
attribute,name?,format?):BaseMeasure
Calculates the variance of the given numeric attribute across the entire population (all items).
Parameters
| Parameter | Type | Description |
|---|---|---|
attribute | Attribute | Attribute to aggregate |
name? | string | Optional name for the new measure |
format? | string | Optional 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
A measure instance
Example
Calculate the variance (population) of the cost attribute.
measureFactory.varp(DM.Commerce.Cost)