TM1 Function for TI, ViewAttrInsert

Creates a new attribute for a cube view.

Available In

TurboIntegrator

Definition

ViewAttrInsert creates a new attribute for a cube view. 

Syntax

ViewAttrInsert(CubeNamePreviousAttributeNameNewAttributeNameAttributeType);

CubeName = Name of the cube that has the view to receive the attribute.
PreviousAttributeName = Name of the attribute that antecedes the new attribute (order). 
NewAttributeName = Name of the new attribute to be added.
AttributeType = Type of the attribute to be created. The attribute types are:
  N: Numeric attribute; S: String attribute; A: Alias attribute

Video Demo

Use ViewAttrInsert to create an attribute, ‘Description’ for the Employee cube.