# 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://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2Fs3OgocwCuFJeAJFbaee6%2FFormula%20column%20index.png?alt=media&#x26;token=5f7e93d5-4e12-4285-9f57-7b08b9fda6f1" 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://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FLYE13o1R8UKR6fu5NtIP%2FFormula%20row%20index.png?alt=media&#x26;token=09ece4cc-8e96-442f-ae64-48a8f044c4bc" alt=""><figcaption><p>Group index - Row</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.inforiver.com/formula-syntax/identifiers/group-index.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
