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

Function quartile

quartile( attribute, quartileValue, name?): CalculatedMeasure

Calculates the nth quartile value of the given numeric attribute.

Parameters

ParameterTypeDescription
attributeAttributeAttribute to aggregate
quartileValuenumberQuartile index: 0 (minimum), 1 (Q1), 2 (median), 3 (Q3), or 4 (maximum)
name?stringOptional name for the new measure

Returns

CalculatedMeasure

A measure instance

Example

Calculate the third quartile (Q3) of the cost attribute.

measureFactory.quartile(DM.Commerce.Cost, 3)
Last Updated: