# RangeSelectHyperCubeValues Method

## Overloads

| [RangeSelectHyperCubeValues(String, IEnumerable<NxRangeSelectInfo>, IEnumerable<Int32>, Boolean, Boolean)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.RangeSelectHyperCubeValues.htm#Qlik_Engine_GenericObject_RangeSelectHyperCubeValues_System_String_System_Collections_Generic_IEnumerable_Qlik_Engine_NxRangeSelectInfo__System_Collections_Generic_IEnumerable_System_Int32__System_Boolean_System_Boolean_) |  | Makes range selections in measures.<br><br>The member **Change** returns the handles of the objects that are updated following the selections.<br><br><br>`qSuccess` is set to `true` if the selections are successful and is set to `false` in the following cases:<br><br>\* The object contains some invalid fields (fields that are not in the data model).<br><br>\* The selection applies to a locked field.<br><br>\* A range selection is performed and the parameter `OneAndOnlyOne` is set to true in the definition of the object. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.RangeSelectHyperCubeValues.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.RangeSelectHyperCubeValues.htm)

## RangeSelectHyperCubeValues(String, IEnumerable&lt;NxRangeSelectInfo&gt;, IEnumerable&lt;Int32&gt;, Boolean, Boolean)

Makes range selections in measures.

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.

### Declaration

```

          public bool RangeSelectHyperCubeValues([QixName("qPath")] string path, [QixName("qRanges")] IEnumerable<NxRangeSelectInfo> ranges, [QixName("qColumnsToSelect")] IEnumerable<int> columnsToSelect = null, [QixName("qOrMode")] bool orMode = false, [QixName("qDeselectOnlyOneSelected")] bool deselectOnlyOneSelected = false)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | path | Path to the definition of the object to be selected.<br>For example, `/qHyperCubeDef` . |
| System.Collections.Generic.IEnumerable&lt;[NxRangeSelectInfo](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxRangeSelectInfo.htm)&gt; | ranges | Ranges of selections. |
| System.Collections.Generic.IEnumerable&lt;System.Int32&gt; | columnsToSelect | Indicates which dimensions to select.<br>The dimensions numbering starts at 0 (first dimension is 0).<br>If the array is empty, all dimensions are selected. |
| System.Boolean | orMode | Applies to hypercubes with multiple measures.<br>If set to true, it means that at least one of the measures must be in the range of selections for the group of measures to be selected.<br>If set to false, it means that all measures must be in the range of selections for the group of measures to be selected.<br>The default value is false. |
| System.Boolean | deselectOnlyOneSelected | Set this parameter to true to unselect the last single selected value. There must be only one selected value in the field.<br>The default value is false. |

### Returns

| Type | Description |
| --- | --- |
| System.Boolean |  |

### Implements

[IGenericObject.RangeSelectHyperCubeValues(String, IEnumerable<NxRangeSelectInfo>, IEnumerable<Int32>, Boolean, Boolean)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.RangeSelectHyperCubeValues.htm#Qlik_Engine_IGenericObject_RangeSelectHyperCubeValues_System_String_System_Collections_Generic_IEnumerable_Qlik_Engine_NxRangeSelectInfo__System_Collections_Generic_IEnumerable_System_Int32__System_Boolean_System_Boolean_)

### Remarks

This method applies to hypercubes. For example, bar charts, tables and scatter plots.