Returns: A set of tuples.
>>-BottomPercent--(--SetExpression--,--Percentage--+--------------------------+--)->< '-,--+-NumericExpression-+-' '-StringExpression--'
The BottomPercent function always breaks the hierarchy. The members of the set are sorted without regard to their positions in the hierarchy.
In this example, you want to examine the stores that represent the bottom 10% of profit amount. The following query uses the BottomPercent function to return the profit amount of the stores that have profit amounts that represent the bottom 10% of your stores in ascending order of profit amount.
SELECT {[Price Analysis].[Measures].[Profit Amount]} ON AXIS(0),
{BottomPercent(Descendants([Price Analysis].[Store].[All Stores],
-1, LEAVES), 10,
[Price Analysis].[Measures].[Profit Amount])} ON AXIS(1)
FROM [Price Analysis]
| Store | Profit Amount |
|---|---|
| ValueTrend Store 554 | 56360.49 |
| ValueTrend Store 835 | 58189.07 |
You can use the TopPercent function to find the largest values in a set that compose a certain percent of the total of the values of the set.
You can use the BottomCount function to find a specified number of the smallest values in a set; or you can use the BottomSum function to find the smallest values in a set that compose a certain sum.
The BottomPercent function sorts sets in the same way that the Order function does with the BDESC flag specified: that is, the function breaks hierarchies and sorts in descending order.