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. An empty cell returns 0 for a numeric measure and "" for a string measure. Returns null when an element doesn't exist or the number of elements is wrong, and "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");