BOTTOMPERCENT
Description:
This function is used to sort a set in ascending order, and returns a set of tuples with the lowest values whose cumulative total is equal to or greater than a specified percentage.
Syntax:
Aggregate(Set_Expression [ ,Numeric_Expression ])
Return Type:
SCALAR
Parameters:
Parameter | Description |
|---|---|
Set_Expression | It is a valid MDX expression that returns a set. |
Percentage | A valid numeric expression that specifies the percentage of tuples to be returned. |
Numeric_Expression | A valid numeric expression is typically an MDX expression of cell coordinates that returns a number. |
Example:
SELECT
[Measures].[Internet Sales Amount] ON COLUMNS,
BottomPercent([Product].[Product].Members, 20, [Measures].[Internet Sales Amount]) ON
ROWS
FROM [AdventureWorksMF_ValueBased]