Skip to content

element.principal ​

Returns an element's name from one of its aliases.

js
element.principal(dimension, alias)

Parameters ​

ParameterTypeDescription
dimensionstringThe dimension's name or id.
aliasstringThe element's alias.

Returns ​

string

The element's name, or "" when the dimension or element can't be found.

Examples ​

js
element.principal("Account", "Net Profit");