Home      Functions     Common Solutions      Contact     






MDX Functions:
 
MDX Functions

 
Common Solutions

Common Solutions
 
Resource Links

MDX Books
MDX Related Software
MDX Related Blogs
 
Other Links

Contact Us
 
Microsoft SQL Server Analysis Services Function Page
Function Name: DrillupMember
Category: UI
Description: The DrillupMember function returns members from the first supplied set that are not descendants of members in the second supplied set.
Syntax: DRILLUPMEMBER( «Set1», «Set2» )
Technet Link: MDX DrillupMember Function




The following query drills up on the Jerseys member. The first set contains Jersey products that are not descendants of the supplied Pedals subcategory.
 

SELECT
      {} ON COLUMNS,
      DRILLUPMEMBER(HIERARCHIZE({[Product].[Product Categories].[Subcategory].[Jerseys] ,[Product].[Product Categories].[Subcategory].[Pedals] ,[Product].[Product Categories].[Product].&[229] ,[Product].[Product Categories].[Product].&[237] ,[Product].[Product Categories].[Product].&[545]}) , {[Product].[Product Categories].[Subcategory].[Pedals]}) ON ROWS
FROM
      [Adventure Works]
 
 

 
The following query drills up on the Pedals member. The first set contains Pedal products that are not descendants of the supplied Jerseys subcategory.
 

SELECT
      {} ON COLUMNS,
      DRILLUPMEMBER(HIERARCHIZE({[Product].[Product Categories].[Subcategory].[Jerseys] ,[Product].[Product Categories].[Subcategory].[Pedals] ,[Product].[Product Categories].[Product].&[229] ,[Product].[Product Categories].[Product].&[237] ,[Product].[Product Categories].[Product].&[545]}) , {[Product].[Product Categories].[Subcategory].[Jerseys]}) ON ROWS
FROM
      [Adventure Works]
 
 

 
 

 
Copyright 2008 by MDXpert.com.
 
Terms of Use                              Privacy Statement
 
Site Powered By - WinHost.Com