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

Function mode

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

Calculates the mode (most frequent value) of the given attribute.

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 most frequent cost.

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