BOTTOMSUM
Description:
This function is used to sort a specified set in ascending order and returns a set of tuples with the lowest values whose sum is equal to or less than a specified value.
Syntax:
BottomSum(Set_Expression, Value, Numeric_Expression)
Return Type:
SET
Parameters:
Parameter | Description |
|---|---|
Set_Expression | It is a valid MDX expression that returns a set. |
Value | A valid numeric expression that specifies the value against which each tuple is compared. |
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,
BottomSum([Product].[Product].Members, 1000000, [Measures].[Internet Sales Amount]) ON
ROWS
FROM [AdventureWorksMF_ValueBased]