Skip to main content Skip to complementary content

GetObjectField - chart function

GetObjectField() returns the field expression 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])

Return data type: string

Example: Chart expressions
Example Result
GetObjectField ()

GetObjectField (0)

Returns the field expression for the first dimension in the chart.
GetObjectField (1) Returns the field expression for the second dimension in the chart.

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

Example - GetObjectField fundamentals

Example - GetObjectField advanced scenario

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!