# GETMEASUREBYINDEX

The GETMEASUREBYINDEX function returns measure values based on the specified index. It should be used with native measures.

## Syntax

```javascript
GETMEASUREBYINDEX(index)
```

## Arguments

index– The position of the measure whose values are to be fetched. Required.

## Example

```javascript
GETMEASUREBYINDEX(3)
//Returns the third native measure in the report
```

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FKjByZyMAYjqCVAmdQoe4%2Fimage.png?alt=media&#x26;token=3ba00644-2c36-4b92-bb72-15913d5cdccc" alt=""><figcaption><p>Fetches the values of Margin and Margin PY which are at position 3 and 5 in the report</p></figcaption></figure>
