tips for writing rules

Post Reply
charan
Posts: 148
Joined: Tue Nov 23, 2010 9:04 am
OLAP Product: cognos tm1
Version: 9.5
Excel Version: 2007

tips for writing rules

Post by charan »

hi,
I am begineer in TM1, i am working on rules, i have worked on rules which i got from higher collegues and able to do it. when i am tryong of my own rules with developing new models or cubes and writing rules for it, i am always getting error like"Invalid statement with the particular element with the element i have developed" Can give me suggestion for executing the rules correctly.
Example i have developed....
with dimension rule1 with profit,loss, s.p,c.p.
with dimesion gross profit, margin.
rule is..
margin=profit*loss;
when i write this rule i got the error loke invalid statement.
Give some suggestion to correct my self and to get it.

Thanking you very much.

TM19.5
excel 2007.
comma
Posts: 82
Joined: Thu Jun 03, 2010 3:50 am
OLAP Product: Cognos TM1
Version: 9.5.0 64-bit
Excel Version: 2003 SP3

Re: tips for writing rules

Post by comma »

Element must be written using square brackets and apostrophes:

Code: Select all

['margin'] = ['profit'] * ['loss'];
Windows Server 2003 Enterprise x64
Windows XP Pro 2002 SP3
Internet Explorer 7
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: tips for writing rules

Post by tomok »

The Rules editor has a wizard-like interface for helping you with the syntax. Why are you not using this?
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
charan
Posts: 148
Joined: Tue Nov 23, 2010 9:04 am
OLAP Product: cognos tm1
Version: 9.5
Excel Version: 2007

Re: tips for writing rules

Post by charan »

Boss,
Thank you, i have done what you told me.The mistake i done was i used feeder symbol in the rule.

Thank you very much.
Post Reply