TM1 Technical question

Post Reply
Totti.Ning
Posts: 6
Joined: Thu May 17, 2012 2:35 pm
OLAP Product: Cognos TM1
Version: 9.5
Excel Version: 2007

TM1 Technical question

Post by Totti.Ning »

Dear everybody

how does tm1 can implete triangle fuction caculation like excel SUMPRODUCT fuction ? ? ?


thx.
Andy Key
MVP
Posts: 352
Joined: Wed May 14, 2008 1:37 pm
OLAP Product: TM1
Version: 2.5 to PA
Excel Version: Lots
Location: Sydney
Contact:

Re: TM1 Technical question

Post by Andy Key »

You can find details on how to do a SumProduct here.
Andy Key
Duncan P
MVP
Posts: 600
Joined: Wed Aug 17, 2011 1:19 pm
OLAP Product: TM1
Version: 9.5.2 10.1 10.2
Excel Version: 2003 2007
Location: York, UK

Re: TM1 Technical question

Post by Duncan P »

Looking at the documentation of SUMPRODUCT (http://office.microsoft.com/en-us/excel ... 42935.aspx) it is actually much simpler. SUMPRODUCT is defined as the sum over the ranges specified of the pairwise products of the cells in the ranges. This is just normal consolidation of an N: level product measure.

Suppose each range in your SUMPRODUCT corresponds to a measure in your cube and that all the other dimensions in the cube have a "Total" item which is the sum of all the leaves. Create a new measure PRODUCT and set the rule

Code: Select all

['PRODUCT'] = N: ['Measure1'] * ['Measure2'] * ['Measure3'];
The value for "Total Dim1", "Total Dim2", ... "PRODUCT" will be the sum of all the products.

The key here is the N: which tells TM1 only to apply the product to the leaves and to let the totals be done by normal summation.
Post Reply