DrilldownMemberBottom

Return to: Calculated Member Builder Function List

Drills down the members in a specified set that are present in a second specified set, limiting the result set to a specified number of members.

Alternatively, drills down on a set of tuples.

Syntax

DrilldownMemberBottom(«Set1», «Set2», «Count»[, «Numeric Expression»][, RECURSIVE]])

Remarks

«Set1» may contain tuples instead of members. Tuple drilldown is an extension of OLE DB, and it returns a set of tuples instead of members.

Functions like DrilldownMember but instead of including all children of a member, only the bottom «Count» number of children are returned, based on «Numeric Expression».

Example

DrilldownMemberBottom({USA, Canada, Mexico}, {USA, WA, Mexico}, 2, [Unit Sales])

returns the set

{USA, <bottom two states in USA>, Canada, Mexico, <bottom two states in Mexico>}

and

DrilldownMemberBottom({USA, WA, Canada, Mexico}, {USA, WA, Mexico}, 2, [Unit Sales], RECURSIVE)

returns the set

{USA, WA, <bottom two cities in WA>, Canada, Mexico, <bottom two states in Mexico>}.

Tuple drilldown

DrilldownMemberBottom({(USA, [Unit Sales]), (WA, [Unit Sales]), (Canada, [Unit Sales]), (Mexico, [Unit Sales])},{USA, WA},2,[Store Sales],RECURSIVE)

returns the set

{(USA, [Unit Sales]), (WA, [Unit Sales]), (<bottom two cities in WA>, [Unit Sales]), (Canada, [Unit Sales]), (Mexico, [Unit Sales]}.

 

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.