MEDIAN
Description:
This function is used to return a scalar value signifying the median of the given set.
Syntax:
Median(Set_Expression, Measure, Inclusive/Exclusive flag)
Return Type:
SCALAR
Parameters:
Parameter | Description |
|---|---|
Set_Expression | It is a valid MDX expression that returns a set. |
Measure | It is a valid measure. |
Inclusive/Exclusive flag | It is a flag specifying Inclusive or Exclusive implementation of percentile. The valid values are Inclusive / Exclusive. |
Example:
Median([Geo].[H_Geo].[Country], [Measures].[Sum Sales], Exclusive)