TM1 Function for TI, ViewAttrNL

Returns a numeric attribute from a cube view for a locale.

What is the ViewAttrNL function?

ViewAttrNL returns a numeric attribute from a cube view for a locale.

Where can the ViewAttrNL function be used?

TurboIntegrator

What is the syntax for ViewAttrNL?

ViewAttrNL(CubeName, ViewName, AttributeName, [LangLocaleCode]);​

CubeName = Parent cube of the view to have the numeric attribute value retrieved.​
ViewName = Name of the view to have the numeric attribute value retrieved.​
AttributeName = Name of the attribute to retrieve the value.​
LangLocaleCode = Specifies the language code of the attribute to be retrieved (ISO 639-1).​
If blank or ignored, TM1 will retrieve the user’s current locale attribute value. 

A demonstration on how to use ViewAttrNL

Use ViewAttrNL to retrieve the ‘Reference Number’ from the Employee cube’s default view for the locale pt-BR.