Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.06 KB

File metadata and controls

44 lines (33 loc) · 1.06 KB
description Count (Dimension) (MDX)
title Count (Dimension) (MDX) | Microsoft Docs
ms.date 02/17/2022
ms.prod sql
ms.technology analysis-services
ms.custom mdx
ms.topic reference
ms.author owend
ms.reviewer owend
author minewiskan

Count (Dimension) (MDX)

Returns the number of hierarchies in a cube.

Syntax

  
Dimensions.Count   

Remarks

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

Example

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]  

See Also

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