TM1 Function for TI, ​AttrPutN

AttrPutN uploads a value to a numeric attribute for an element.

What is the AttrPutN function?

AttrPutN uploads a value to a numeric attribute for an element.

Where can the AttrPutN function be used?

TurboIntegrator

What is the syntax for AttrPutN?

AttrPutN( Value, DimName, ElName, AttrName, [LangLocaleCode] )​;

​Value – the number that you want to insert.​
DimName – the dimension that you want to update.​
ElName – is the element in the dimension that you want to update.​
AttrName – is the attribute of the dimension that you want to update. ​
LangLocaleCode – the language locale code to which the value applies. It’s an optional parameter. When it’s omitted, the base attribute value is updated.

A demonstration on how to use AttrPutN

Use AttrPutN to upload 1 to the index attribute against Monday from the Weekday dimension.