# TreeDataDef

Defines the properties of a TreeData object. For more information about the definition of a TreeData object, see *Generic object*.

Information note**STABLE.**  
This API is reliable and breaking changes are unlikely.

## Properties

| Name | Description | Type |
| --- | --- | --- |
| qStateName | Name of the alternate state.<br>Default is current selections *$* . | String |
| qDimensions | Array of dimensions. | Array of [NxTreeDimensionDef](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/EngineJSONAPI/Content/models-nxtreedimensiondef.htm) |
| qInterColumnSortOrder | Defines the order of the dimension levels/columns in the TreeData object.<br>Column numbers are separated by a comma.<br>Example: [1,0,2] means that the first level in the tree structure is dimension 1, followed by dimension 0 and dimension 2.<br>The default sort order is the order in which the dimensions and measures have been defined in the TreeDataDef. | Array of Integer |
| qSuppressZero | Removes zero values. | Boolean |
| qSuppressMissing | Removes missing values. | Boolean |
| qOpenFullyExpanded | If this property is set to true, the cells are opened expanded. The default value is false. | Boolean |
| qPopulateMissing | If this property is set to true, the missing symbols (if any) are replaced by 0 if the value is a numeric and by an empty string if the value is a string.<br>The default value is false. | Boolean |
| qCalcCondition |  | [NxCalcCond](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/EngineJSONAPI/Content/models-nxcalccond.htm) |
| qTitle |  | [StringExpr](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/EngineJSONAPI/Content/models-stringexpr.htm) |
| qInitialDataFetch | Initial data set.<br>This property is optional. | Array of [NxTreeDataOption](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/EngineJSONAPI/Content/models-nxtreedataoption.htm) |
| qExpansionState | Expansion state per dimension. | Array of [ExpansionData](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/EngineJSONAPI/Content/models-expansiondata.htm) |
| qValueExprs | List of measures to calculate on the whole tree. | Array of [NxMeasure](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/EngineJSONAPI/Content/models-nxmeasure.htm) |
| qContextSetExpression | Set Expression valid for the whole cube. Used to limit computations to the set specified. | String |