element.principal
Returns an element's name from one of its aliases.
js
element.principal(dimension, alias)Parameters
| Parameter | Type | Description |
|---|---|---|
dimension | string | The dimension's name or id. |
alias | string | The element's alias. |
Returns
stringThe element's name, or "" when the dimension or element can't be found.
Examples
js
element.principal("Account", "Net Profit");