# GetObjectDimension - chart function

GetObjectDimension() 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:

GetObjectDimension ([index])

Example:

`GetObjectDimension(1)` ` `

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

#### Example: Chart expression

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

| transaction\_date | customer\_id | transaction\_quantity | =GetObjectDimension () | =GetObjectDimension (0) | =GetObjectDimension (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 |

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