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: IsLeaf
Category: Navigation
Description: The IsLeaf function returns either true or false depending on whether the supplied member is a leaf.
Syntax: ISLEAF( Ā«MemberĀ» )
Technet Link: MDX IsLeaf Function

The query below returns True or False if the current member of the Calendar hierarchy is a leaf.
      MEMBER [Measures].[IsALeaf] AS
      {[Measures].[IsALeaf]} ON COLUMNS,
      {[Date].[Calendar].AllMembers} ON ROWS
      [Adventure Works]

The following query uses the Filter function along with the IsLeaf function to return all members of the Calendar hierarchy that are at the leaf level.

      {} ON COLUMNS,
      FILTER({[Date].[Calendar].AllMembers}, ISLEAF([Date].[Calendar].CurrentMember)) ON ROWS
      [Adventure Works]


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