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

Function percentile

percentile( attribute, percentileValue, name?): CalculatedMeasure

Calculates the nth percentile value of the given numeric attribute.

Parameters

ParameterTypeDescription
attributeAttributeAttribute to aggregate
percentileValuenumberPercentile as a fraction between 0 and 1 (e.g. 0.9 for the 90th percentile)
name?stringOptional name for the new measure

Returns

CalculatedMeasure

A measure instance

Example

Calculate the 90th percentile of the cost attribute.

measureFactory.percentile(DM.Commerce.Cost, 0.9)
Last Updated: