Export (0) Print
Expand All
Avg
IIf
Lag
Max
Min
Mtd
Qtd
Sum
Var
Wtd
Ytd
Collapse the table of content
Expand the table of content
Expand Minimize

Ascendants (MDX)

Updated: 17 July 2006

Returns the set of the ascendants of a specified member, including the member itself.


Ascendants(Member_Expression)

Member_Expression

A valid Multidimensional Expressions (MDX) expression that returns a member.

The Ascendants function performs a post-order traversal of the hierarchy for the specified member, and then returns all ascendant members related to the member, including itself, in a set. This is in contrast to the Ancestor function, which returns a specific ascendant member, or ancestor, at a specific level.

The following example returns the count of reseller orders for the [Sales Territory].[Northwest] member and all the ascendants of that member from the Adventure Works cube. The Ascendants function constructs the set that includes the [Sales Territory].[Northwest] member and its ascendants for the ROWS axis.

SELECT
   Measures.[Reseller Order Count] ON COLUMNS,
   Order(
      Ascendants(
         [Sales Territory].[Northwest]
      ),
      DESC
   ) ON ROWS
FROM
   [Adventure Works]

Release History

17 July 2006

Changed content:
  • Updated syntax and arguments to improve clarity.
  • Added updated examples.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft