# GROUP INDEX

The GROUP\_INDEX identifier returns the position of a column.&#x20;

{% hint style="info" %}
GROUP\_INDEX can be used in both calculated rows and columns.
{% endhint %}

## Examples

### Column index

To calculate the column index as a measure, use the Group\_Index identifier in the 'Insert formula' side panel.

<figure><img src="https://content.gitbook.com/content/sB9HAei8v4FfKkH9M4gw/blobs/bxeWTOTshcjAfzaW8Rba/Formula%20column%20index.png" alt=""><figcaption><p>Group index - Column</p></figcaption></figure>

### Row index

To calculate the column index as a row, use the Group\_Index identifier in the 'Insert row' -> 'Calculated row' side panel.

<figure><img src="https://content.gitbook.com/content/sB9HAei8v4FfKkH9M4gw/blobs/sm6JO1Ebj0GKzS0EfBiV/Formula%20row%20index.png" alt=""><figcaption><p>Group index - Row</p></figcaption></figure>
