1: Commonly used functions
Order(): sorts the set of tuples
Hierarchize(): Arrange the set of tuples into a hierarchical order
TopCount(): select the top N-tuple set
BottomCount(): select bottom N-tuple set
TopSum(): Select the largest set of tuples after summation
BottomSum(): Select the smallest set of tuples after summation
TopPercent(): select the set of tuples corresponding to top N% in all sets
BottomPercent(): selects the set of tuples corresponding to bottom N% in all sets
Rank(); find the order position of the tuple in the set
1. TopCount() function: check the top 5 out-of-stock inventory of the third-level category
SELECT NON EMPTY {[Measures].[Out of stock]} ON COLUMNS, NON EMPTY TopCount({[Commodity category. Category Sku].[Third-level category].Members},5,[Measures].[Out of stock stock] ) ON ROWS FROM [Repertory_Examination]
The returned result set is sorted according to: [Out-of-stock] from largest to smallest.