Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Drills up the members of a set that are below a specified level.
DrillupLevel(Set_Expression [ , Level_Expression ] )
Set_Expression
A valid Multidimensional Expressions (MDX) expression that returns a set.
Level_Expression
A valid Multidimensional Expressions (MDX) expression that returns a level.
The DrillupLevel function returns a set of members organized hierarchically based on the members included in the specified set. Order is preserved among the members in the specified set.
If a level expression is specified, the DrillupLevel function constructs the set by retrieving only those members that are above the specified level. If a level expression is specified and there is no member of the specified level represented in the specified set, the specified set is returned.
If a level expression is not specified, the function constructs the set by retrieving only those members that are one level higher than the lowest level of the first dimension referenced in the specified set.
The following example returns the set of members from the first set that are above the Subcategory level.
SELECT DrillUpLevel
({[Product].[Product Categories].[All Products]
,[Product].[Product Categories].[Subcategory].&[32],
[Product].[Product Categories].[Product].&[215]},
[Product].[Product Categories].[Subcategory]
)
ON 0
FROM [Adventure Works]
WHERE [Measures].[Internet Order Quantity]
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today