---
url: /cube-functions/cubedimensioncount.md
description: Returns the number of dimensions in the specified cube.
---

# CUBEDIMENSIONCOUNT&#x20;

Returns the number of dimensions in the specified cube.

```js
CUBEDIMENSIONCOUNT(cube)
```

#### Parameters

* `cube` - The name of the cube.

#### Examples

```js
CUBEDIMENSIONCOUNT("Sales")
```

**Note:** Returns 4 if the if there was only 4 dimensions in the Sales cube.
