Percentile
Returns the value of the tuple that is at a given percentile of a set.
Syntax
Percentile( Set_Expression , Numeric_Expression , Numeric_Expression )
Arguments
Set_Expression | MDX expression that returns a set. |
---|---|
Numeric_Expression | MDX expression that returns a number. |
Numeric_Expression | MDX expression that returns a number representing a percentile |
Examples
The following example calculates 75 percentile of resolution days for resolved issues in period:
Percentile(Filter( Â Â Descendants([Issue].CurrentMember, [Issue].[Issue]), Â Â DateInPeriod( Â Â Â [Issue].CurrentHierarchyMember.Get('Resolved at'), Â Â Â [Time].CurrentHierarchyMember) Â Â AND [Measures].[Issues resolved] > 0), Â [Measures].[Total resolution days], Â 75 )