DimNm TM1 Function: Use and Syntax

The TM1 function DimNm returns the name of an element from its index in a TM1 dimension. Each element in a TM1 dimension has an index number.  This is internal to the dimension. The DimNm function looks up that index number and returns the element name corresponding to it. Syntax The syntax is DimNm(dimension, index); where Dimension, is the dimension you want to interrogate. Note that if referring to a dimension directly, … Continue Reading

This entry was posted in Elements, Rule Functions, TI Functions. Bookmark the permalink. | Leave a comment

DimSiz TM1 Function: Use and Syntax

The TM1 function DimSiz returns the total number of elements in a TM1 dimension. Syntax of DimSiz The syntax is DIMSIZ(dimension); where dimension is the dimension you want to get the total number of elements (note that you may need to prefix the dimension name with the TM1 server name in the syntax servername:dimension). Use and Example You would typically use this function in to set up a loop so you can … Continue Reading

This entry was posted in Elements, Rule Functions, TI Functions and tagged DIMSIZ, WHILE. Bookmark the permalink. | Tagged DIMSIZ, WHILE | Leave a comment

AttrPutN TM1 Function: Use and Syntax

AttrPutN is a TM1 Turbo Integrator function that inserts a numeric value onto a specific attribute for the current element in a specified dimension. Note that this function does not insert a string into an attribute. To insert a string value into an attribute please see AttrPutS. Syntax of AttrPutN The syntax is AttrPutN(Value, DimName, ElName, AttrName, [LangLocaleCode] ); value, is the number that you want to insert dimname, is the dimension that you want … Continue Reading

This entry was posted in Attributes, TI Functions. Bookmark the permalink. | 2 Comments

AttrPutS and AttrPutN Doesn’t Work!

Attribute Definition Problem I just had an instance where I was adding new elements to a dimension in TM1 and then wanted to define an attribute for those new elements.  Easy, yeah?  Just test if an element is there with a Dimix, then use a DimensionElementInsert and then an AttrPutS or AttrPutN to define the attribute.  Well, not quite. I had it all on the metadata tab, but even though the … Continue Reading

This entry was posted in Attributes, TI Errors. Bookmark the permalink. | 3 Comments

AttrPutS TM1 Function: Use and Syntax

AttrPutS is a TM1 Turbo Integrator function that inserts a string onto a specific attribute for the current element in a specified dimension. Note this does not insert a value as a number.  To insert a numeric value into an attribute please see AttrPutN. Syntax of AttrPutS The syntax is AttrPutS(Value, DimName, ElName, AttrName, [LangLocaleCode] ); value, is the string that you want to insert dimname, is the dimension that you … Continue Reading

This entry was posted in Attributes, TI Functions. Bookmark the permalink. | 2 Comments

DimensionSortOrder TM1 Function: Use and Syntax

DimensionSortOrder is used to sort a dimension from within a Turbo Integrator (TI) process. Syntax of DimensionSortOrder DimensionSortOrder ( DimName , CompSortType , CompSortSense , ElSortType , ElSortSense); where: DimName, is the dimension to be sorted. CompSortType, sets the order for Consolidated elements. ByInput (the order used is the order the elements were added to the dimension) or ByName (the order used is alphabetic on the field chosen). CompSortSense, Ascending or Descending ElSortType, sets … Continue Reading

This entry was posted in Elements, TI Functions. Bookmark the permalink. | 1 Comment

How to Pad a Variable Length Element in TM1

Often we have a situation were we want to create a dimension with the contents of a code from a source system.  Sometimes, however the IDs in the source system are of a variable length and we want to present them uniformly.  To overcome this, we need to pad the code at the left with a constant character to make them all the same length. the method below will pad out … Continue Reading

This entry was posted in Elements, TI Processes. Bookmark the permalink. | Leave a comment

Attributes in TM1

I have been using attributes since I started working with TM1 and are often asked what are they and what are they used for. What are Attributes in TM1 TM1 Attributes are a way of adding relevant information to elements in dimensions. For example, an attribute of a date element might be the day of the week, or the number of business days passed in a month. Or for a … Continue Reading

This entry was posted in Attributes, Dimensions, TI Functions. Bookmark the permalink. | Leave a comment

TI Error: Cannot convert field number 9

I was working on a new TI process today and got this error – “Cannot convert field number 9, value “*textdata*” to a real number”. Odd, I thought. Cryptic error – cannot convert field number 9! I initially thought it might concern field number 9 in my source data.  Nope.  No cigar! What this is saying is that there is a field on the Variables tab has been defined as … Continue Reading

This entry was posted in Errors, TI Errors. Bookmark the permalink. | Leave a comment

Cognos Express Backups: How to Create an Effective CX and TM1 Backup Strategy

Backing up your TM1 and/or Cognos Express environment is vital.  Without it, you potentially could lose months of work and cost your organisation a motza.  Good disaster recovery planning will help alleviate this risk. There is a Backup tool available in the Manager screen of Cognos Express that backs up and restores your entire Cognos Express environment.  Unfortunately this does not allow restoring of specific elements of your system.  Thus we … Continue Reading

This entry was posted in Backups, TM1 Administration. Bookmark the permalink. | Leave a comment