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

Function stdev

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

Calculates the standard deviation of the given numeric attribute based on a sample (a random subset of 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 standard deviation (sample) of the cost attribute.

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