# GetObjectField

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.

Syntax:

GetObjectField ([index])

Example:

`GetObjectField(1)` ` `

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/FieldFunctions/GetObjectField.htm)

#### Example: Chart expression

QlikView table showing examples of the GetObjectField function in a chart expression.

Example GetObjectFieldGetObjectField usage

| 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 |

In this example, transaction\_quantity is a measure and would therefore not return a result from the GetObjectField function. Use the GetObjectMeasure function instead.