# GetObjectMeasure - chart function

GetObjectMeasure() returns the name of the measure. Index is an optional integer denoting the measure that should be returned.

Information note

You cannot use this function in a chart in the following locations: title, subtitle, footer, reference line expression and min/max expression.

Information note

You cannot reference the name of a dimension or measure in another object using the Object ID.

Syntax:

GetObjectMeasure ([index])

Example:

`GetObjectMeasure(1)` ` `

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/FieldFunctions/getobjectmeasure.htm)

#### Example: Chart expression

Qlik Sense table showing examples of the GetObjectMeasure function in a chart expression

| customer\_id | sum(transaction\_quantity) | Avg(transaction\_quantity) | =GetObjectMeasure () | =GetObjectMeasure(0) | =GetObjectMeasure(1) |
| --- | --- | --- | --- | --- | --- |
| 49681 | 13 | 13 | sum(transaction\_quantity) | sum(transaction\_quantity) | Avg(transaction\_quantity) |
| 203521 | 27 | 13.5 | sum(transaction\_quantity) | sum(transaction\_quantity) | Avg(transaction\_quantity) |

If you want to return the name of a dimension use the GetObjectField function instead.