# GetObjectField - chart function

GetObjectField() returns the name of the dimension. Index is an optional integer denoting the dimension 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:

GetObjectField ([index])

If you want to return the name of a measure use the GetObjectMeasure function instead.

Example:

`GetObjectField(1)` ` `

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/GetObjectField.htm)

#### Example: Chart expression

Qlik SenseQlik Sense table showing examples of the GetObjectFieldGetObjectField function in a chart expression.

| transaction\_date | customer\_id | transaction\_quantity | =GetObjectField () | =GetObjectField (0) | =GetObjectField (1) |
| --- | --- | --- | --- | --- | --- |
| 2018/08/30 | 049681 | 13 | transaction\_date | transaction\_date | customer\_id |
| 2018/08/30 | 203521 | 6 | transaction\_date | transaction\_date | customer\_id |
| 2018/08/30 | 203521 | 21 | transaction\_date | transaction\_date | customer\_id |