Can rules break architect?

Post Reply
User avatar
ioscat
Regular Participant
Posts: 209
Joined: Tue Jul 10, 2012 8:26 am
OLAP Product: Contributor
Version: 9.5.2 10.1.1 10.2
Excel Version: 07+10+13
Contact:

Can rules break architect?

Post by ioscat »

Code: Select all

['Column2'] = S: IF ( ['Column1'] @= 'teststring' , 'TRUEVALUE' , 'FALSEVALUE');
I built cube with 2 dimensions with 2 string elements 'Column1' & 'Column2'. This code significantly increase process using and on our work model with huge cubes led to loosing control on Arch. Is it bug or feature?
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: Can rules break architect?

Post by Duncan P »

I am very surprised that this rule compiles. I get a "syntax error ... logical expression" as a ['element'] reference is always numeric and @= expects a string on both sides. Can you confirm that this rule is exactly as you took it from the cube, that it saves without error and also what version you are using?

Thanks,
Duncan.
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: Can rules break architect?

Post by tomok »

ioscat wrote:

Code: Select all

['Column2'] = S: IF ( ['Column1'] @= 'teststring' , 'TRUEVALUE' , 'FALSEVALUE');
I built cube with 2 dimensions with 2 string elements 'Column1' & 'Column2'. This code significantly increase process using and on our work model with huge cubes led to loosing control on Arch. Is it bug or feature?
What do you mean by "loosing control"? How big is the view are trying to open? Do you realize that this rule is going populate every single value for Column2? If you are trying to open a view that shows the entire cube you may be overloading TM1. Suggest you trim down the size of the view.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
User avatar
Martin Ryan
Site Admin
Posts: 2003
Joined: Sat May 10, 2008 9:08 am
OLAP Product: TM1
Version: 10.1
Excel Version: 2010
Location: Wellington, New Zealand
Contact:

Re: Can rules break architect?

Post by Martin Ryan »

Assuming the syntax is valid, a two dimensional cube with a rule like this is trivial. Unless you have several million elements in one of the dimensions this rule is not a big deal at all and should take milliseconds to save the rule and also to calculate when you open the view.

I think you may not be giving us the whole picture. Can you show the actual rule that you're using and the cube structure that you're using.

Martin
Please do not send technical questions via private message or email. Post them in the forum where you'll probably get a faster reply, and everyone can benefit from the answers.
Jodi Ryan Family Lawyer
Post Reply