# HyperCube

Renders the properties of a hypercube. Is the layout for *HyperCubeDef*. For more information about the definition of a hypercube, see *Generic object*.

Information note

What is returned in HyperCube depends on the type of the hypercube (straight, pivot or stacked table, or tree) and on the method called (GetLayout, GetHyperCubeData, GetHyperCubePivotData, GetHyperCubeStackData, GetHyperCubeTreeData).

## Properties

| Name | Description | Type |
| --- | --- | --- |
| qStateName | Name of the alternate state.<br>Default is current selections *$* . | String |
| qSize |  | [Size](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/models-size.htm) |
| qError |  | [NxValidationError](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/models-nxvalidationerror.htm) |
| qDimensionInfo | Information on the dimension. | Array of [NxDimensionInfo](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/models-nxdimensioninfo.htm) |
| qMeasureInfo | Information on the measure. | Array of [NxMeasureInfo](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/models-nxmeasureinfo.htm) |
| qEffectiveInterColumnSortOrder | Sort order of the columns in the hypercube.<br>Column numbers are separated by a comma.<br>Example: [1,0,2] means that the first column to be sorted was the column 1, followed by the column 0 and the column 2. | Array of Integer |
| qGrandTotalRow | Aggregate for measures of all values in the field.<br>The result value depends on the *qAggrFunc* defined in *HyperCubeDef*. | Array of [NxCell](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/models-nxcell.htm) |
| qDataPages | Set of data.<br>Is empty if nothing has been defined in **qInitialDataFetch** in *HyperCubeDef*. | Array of [NxDataPage](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/models-nxdatapage.htm) |
| qPivotDataPages | Set of data for pivot tables.<br>Is empty if nothing has been defined in **qInitialDataFetch** in *HyperCubeDef*. | Array of [NxPivotPage](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/models-nxpivotpage.htm) |
| qStackedDataPages | Set of data for stacked tables.<br>Is empty if nothing has been defined in **qInitialDataFetch** in *HyperCubeDef*. | Array of [NxStackPage](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/models-nxstackpage.htm) |
| qMode | Information about the mode of the visualization.<br><br>One of:<br><br><ul><li>S or DATA_MODE_STRAIGHT</li><li>P or DATA_MODE_PIVOT</li><li>K or DATA_MODE_PIVOT_STACK</li><li>T or DATA_MODE_TREE</li><li>D or DATA_MODE_DYNAMIC</li></ul> | String |
| qNoOfLeftDims | Number of left dimensions.<br>Default value is -1.<br>The index related to each left dimension depends on the position of the pseudo dimension (if any).<br>For example, a pivot table with:<br><br><ul><li>Four dimensions in the following order: Country, City, Product and Category</li><li>One pseudo dimension in position 1</li><li>Three left dimensions.</li></ul><br><br>implies that:<br><br><ul><li>The index 0 corresponds to the left dimension Country.</li><li>The index 1 corresponds to the pseudo dimension.</li><li>The index 2 corresponds to the left dimension City.</li><li>Product and Category are top dimensions.</li></ul><br><br>Another example:<br><br><ul><li>Four dimensions in the following order: Country, City, Product and Category.</li><li>One pseudo dimension in position -1.</li><li>Three left dimensions.</li></ul><br><br>implies that:<br><br><ul><li>The index -1 corresponds to the pseudo dimension; the pseudo dimension is the most to the right.</li><li>The index 0 corresponds to the left dimension Country.</li><li>The index 1 corresponds to the left dimension City.</li><li>The index 2 corresponds to the left dimension Product.</li><li>Category is a top dimension.</li></ul> | Integer |
| qIndentMode | Is used for pivot tables only.<br>If set to true, the formatting of the results is slightly different.<br>This property is optional. | Boolean |
| qLastExpandedPos |  | [NxCellPosition](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/models-nxcellposition.htm) |
| qHasOtherValues | True if other row exists. | Boolean |
| qTitle | Title of the hypercube, for example the title of a chart. | String |
| qTreeNodesOnDim | The total number of nodes on each dimension (only applicable when *qMode = T* ). | Array of Integer |
| qCalcCondMsg | The message displayed if calculation condition is not fulfilled. | String |
| qColumnOrder | The order of the columns. | Array of Integer |