Skip to content

dimension.getType ​

Returns the type of a dimension.

js
dimension.getType(dimension)

Parameters ​

ParameterTypeDescription
dimensionstringThe dimension's name or id.

Returns ​

string

The dimension's type, such as standard, measure, time, scenario or geography, or "ERROR: Dimension not found" when it can't be found.

Examples ​

js
const type = dimension.getType("Year");