Drills down the topmost members of a set, at a specified level, to one level below.
If a numeric expression is specified, the DrilldownLevelTop function sorts, in descending order, the children of each member in the specified set according to the value of the numeric expression, as evaluated over the set of child members. If a numeric expression is not specified, the function sorts, in descending order, the children of each member in the specified set according to the values of the cells represented by the set of child members, as determined by the query context.
After sorting, the DrilldownLevelTop function returns a set that contains the parent members and the number of child members, specified in Count, with the highest value.
The DrilldownLevelTop function is similar to the DrilldownLevel function, but instead of including all children for each member at the specified level, the DrilldownLevelTop function returns the topmost number of child members.
The following example returns the top three children of the Product Category level, based on the default measure.
SELECT DrilldownLevelTop ([Product].[Product Categories].children, 3, [Product].[Product Categories].[Category]) ON 0 FROM [Adventure Works]