# SelectHyperCubeValues method

Selects some values in one dimension. The values are identified by their element numbers.

Information note

This method applies to charts, tables and scatter plots.

The member **Change** returns the handles of the objects that are updated following the selections. *qSuccess* is set to *true* if the selections are successful and is set to *false* in the following cases:

* The object contains some invalid fields (fields that are not in the data model).
* The selection applies to a locked field.
* A range selection is performed and the parameter *OneAndOnlyOne* is set to true in the definition of the object.

## Parameters

| Name | Description | Mandatory | Type |
| --- | --- | --- | --- |
| qPath | Path to the definition of the object to be selected.<br>For example, */qHyperCubeDef* . | Yes | String |
| qDimNo | Dimension number or index to select.<br>Dimension numbers/index start from 0. | Yes | Integer |
| qValues | Element numbers of the field to select.<br>You can select multiple elements; the separator is the comma. | Yes | Array of Integer |
| qToggleMode | Set to true to toggle. | Yes | Boolean |

## Returns

| Name | Description | Type |
| --- | --- | --- |
| qSuccess | true/false | Boolean |

## See also

[Drill up a hierarchy](https://help.qlik.com/en-US/sense-developer/November2025/csh/engineapi/drill-up-hierarchy)