cube.get
Returns the value at an intersection of a cube.
js
cube.get(cubeName, ...elements)Parameters
| Parameter | Type | Description |
|---|---|---|
cubeName | string | The cube's name. |
elements | string | One element per dimension, in the cube's dimension order. |
Returns
number | string | nullThe 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");