What is the ViewAttrN function?

ViewAttrN returns a numeric attribute from a cube view.

Where can the ViewAttrN function be used?

TurboIntegrator

Which TM1 Server version is this function available for?

Version 11 and 12

What is the syntax for ViewAttrN?

ViewAttrN(CubeName, ViewName, AttrName);​

​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.

A demonstration on how to use ViewAttrN

Use ViewAttrN to retrieve the Reference Number attribute, from the Employee cube’s default view.