Skip to content

cube.dimensionCount ​

Returns the number of dimensions in a cube.

js
cube.dimensionCount(cubeName)

Parameters ​

ParameterTypeDescription
cubeNamestringThe cube's name.

Returns ​

number

The number of dimensions, or -1 when the cube can't be found.

Examples ​

js
const count = cube.dimensionCount("General Ledger");