# ExpandTop method

Expands the top dimensions of a pivot table. This method applies only to pivot tables that are not always fully expanded. In the definition of the hypercube (in *HyperCubeDef* ), the parameter *qAlwaysFullyExpanded* must be set to false.

## Parameters

| Name | Description | Mandatory | Type |
| --- | --- | --- | --- |
| qPath | Path to the definition of the object to be expanded.<br>For example, */qHyperCubeDef* . | Yes | String |
| qRow | Row index. The index is based on the top dimension indexes.<br>Indexing starts from 0. | Yes | Integer |
| qCol | Column index in the data matrix.<br>Indexing starts from 0. | Yes | Integer |
| qAll | If set to true, it expands all cells.<br>Parameters *qRow* and *qCol* are not used if *qAll* is set to true, but they need to be set (for example to 0). | Yes | Boolean |

## See also

[Collapse or expand the top dimensions of a pivot table](https://help.qlik.com/en-US/sense-developer/November2025/csh/engineapi/collapse-expand-top-dimensions-pivot-table)