TechNet
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

Count (Dimension) (MDX)

 

Updated: March 2, 2016

Returns the number of hierarchies in a cube.

  
Dimensions.Count   

Returns the number of hierarchies in a cube, including the [Measures].[Measures] hierarchy.

The following example returns the number of hierarchies in the Adventure Works cube.

WITH MEMBER measures.X AS  
  dimensions.count   
SELECT Measures.X ON 0  
FROM [Adventure Works]  

Count (Tuple) (MDX)
Count (Hierarchy Levels) (MDX)
Count (Set) (MDX)
MDX Function Reference (MDX)

Community Additions

ADD
Show:
© 2016 Microsoft