Skip to content

cube.get ​

Returns the value at an intersection of a cube.

js
cube.get(cubeName, ...elements)

Parameters ​

ParameterTypeDescription
cubeNamestringThe cube's name.
elementsstringOne element per dimension, in the cube's dimension order.

Returns ​

number | string | null

The cell's value, or null when the cell is empty. Returns "Error: Cube not found." when the cube can't be found.

Examples ​

js
const value = cube.get("General Ledger", "Actual", "2014", "Total Revenue", "All Departments", "All Projects", "Amount");