Rule Design for String consolidation levels

Post Reply
adasko
Posts: 13
Joined: Fri May 16, 2014 12:06 pm
OLAP Product: Cognos Tm1
Version: 10.1
Excel Version: 10

Rule Design for String consolidation levels

Post by adasko »

Hi
I am struggling with the follwoing rule issue and wonder if anyone may help me:

I would like to put
- either zero at the string consolidation level elements when direct child elements (string) have no value entered,
- either 1 when any of n-level (child) elements has string value entered.

Could anyone help me ?
Thanks
pandinus
Posts: 78
Joined: Tue Mar 18, 2014 8:02 am
OLAP Product: TM1, Cognos Express
Version: 10.2.2
Excel Version: 2013

Re: Rule Design for String consolidation levels

Post by pandinus »

The best way to solve this would be to use TI.
Create a view on all level-0 elements and in case any value comes across write the '1' to the parent.
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Rule Design for String consolidation levels

Post by tomok »

Really bad idea to do this with a rule. String rules are 1) slow, and 2) never cached. If this is anything other than a simple lookup cube then you should populate with TI.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
declanr
MVP
Posts: 1831
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: Rule Design for String consolidation levels

Post by declanr »

I'm assuming that the cube is for string entry of some sort; for example you have an org hierarchy and they feedback comments.
But rather than having them type something into a consolidated level you just want a flag to know if they have put anything at the leaf levels below it.

If so I would take note of Tomok's advice on String rules but from a simple practicality if you do want to do it; just add another hidden numeric measure is a rule derived at the N-level to flag a 1 if there is a comment and 0 if not.
Then your string measure has a C-level rule that says if the numeric is 0 then '0' otherwise '1'.
Declan Rodger
adasko
Posts: 13
Joined: Fri May 16, 2014 12:06 pm
OLAP Product: Cognos Tm1
Version: 10.1
Excel Version: 10

Re: Rule Design for String consolidation levels

Post by adasko »

Prefect (brilliant) idea with hidden numeric measure
Never thought about it
Thanks a lot
Post Reply