Function quartile
quartile(
attribute,quartileValue,name?):CalculatedMeasure
Calculates the nth quartile value of the given numeric attribute.
Parameters
| Parameter | Type | Description |
|---|---|---|
attribute | Attribute | Attribute to aggregate |
quartileValue | number | Quartile index: 0 (minimum), 1 (Q1), 2 (median), 3 (Q3), or 4 (maximum) |
name? | string | Optional name for the new measure |
Returns
A measure instance
Example
Calculate the third quartile (Q3) of the cost attribute.
measureFactory.quartile(DM.Commerce.Cost, 3)