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: DrilldownLevelTop
Category: UI
Description: The DrilldownLevelTop function returns the top specified number of members at the specified level, to one level below.
Syntax: DRILLDOWNLEVELTOP( «Set», «Count»[, [«Level»][, «Numeric Expression»] ] )
Technet Link: MDX DrilldownLevelTop Function




The query below returns the first (top) two Date members of every fiscal month in the Fiscal hierarchy in the Date dimension.
 

SELECT
      {} ON COLUMNS,
      DRILLDOWNLEVELTOP([Date].[Fiscal].[Month].Members, 2, [Date].[Fiscal].[Month]) ON ROWS
FROM
      [Adventure Works]
 
 

 
The following query returns the first (top) three State-Province members for every Country in the Geography hierarchy in the Geography dimension.
 

SELECT
      {} ON COLUMNS,
      DRILLDOWNLEVELTOP([Geography].[Geography].[Country].Members, 3, [Geography].[Geography].[Country]) ON ROWS
FROM
      [Adventure Works]
 
 

 
 

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