Rules in Developers Guide

Post Reply
par3
Posts: 82
Joined: Tue Sep 09, 2008 7:05 am

Rules in Developers Guide

Post by par3 »

Hey Guys.

I trained some people on the Developers guide this week and I had an interesting question. When you create the following rule in the Sales Summury cube :

[] = DB('Sales',!Product Summary,!Store Summary,!Month,!Year,'Actuals',!Sales_m);


it still works without it being fed from the Sales cube. Why is that? I always thought the rule will only work once it has been fed from the Sales cube.


Thanks people!
Alan Kirk
Site Admin
Posts: 6645
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: Rules in Developers Guide

Post by Alan Kirk »

par3 wrote:it still works without it being fed from the Sales cube. Why is that? I always thought the rule will only work once it has been fed from the Sales cube.
You may find this thread of interest on that subject...
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
par3
Posts: 82
Joined: Tue Sep 09, 2008 7:05 am

Re: Rules in Developers Guide

Post by par3 »

Thanks Allan. But that thread confused me even more!!! I don't think I will be able to send that as a responce to the question!!! lol
Alan Kirk
Site Admin
Posts: 6645
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: Rules in Developers Guide

Post by Alan Kirk »

par3 wrote:Thanks Allan. But that thread confused me even more!!! I don't think I will be able to send that as a responce to the question!!! lol
I know the feeling. But when you boil it down, you can explain it simply to non-technical folks in in one of two ways, albeit with a small risk of oversimplifying either way:
(a) TM1 rules run using Voodoo; or (perhaps and/or ;) )
(b) If you use Skipcheck, TM1 rules will not work reliably and consistently unless they're fed.

In other words, don't worry about whether some values may be returned; just be aware that to ensure that the correct values are always returned then (for cubes which use Skipcheck) getting the feeder right is just as important as getting the formula itself right.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
User avatar
Steve Rowe
Site Admin
Posts: 2455
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: Rules in Developers Guide

Post by Steve Rowe »

I'm not sure if this applies but one of the things to watch out for with rules and feeders is when you write a rule over an area that is populated with data.

So if you have data loaded, the feeder flag is present.
Write a rule over the same area, the feeder flags from the input data are still present.
Saving a rule sheet does not clear feeders from a cube.
Restarting the server which clears all the feeder flags would then stop the rule from working.

It's often overlooked that input data creates feeder flags too.
HTH you understand what was happening.
Technical Director
www.infocat.co.uk
User avatar
wissew
Posts: 54
Joined: Tue Jun 17, 2008 7:24 pm
OLAP Product: TM1
Version: 9.5.2; 10.2.2; 11
Excel Version: 2003 SP3 - 2013
Location: Beaverton, OR

Re: Rules in Developers Guide

Post by wissew »

Alan Kirk wrote:
par3 wrote:Thanks Allan. But that thread confused me even more!!! I don't think I will be able to send that as a responce to the question!!! lol
I know the feeling. But when you boil it down, you can explain it simply to non-technical folks in in one of two ways, albeit with a small risk of oversimplifying either way:
(a) TM1 rules run using Voodoo; or (perhaps and/or ;) )
(b) If you use Skipcheck, TM1 rules will not work reliably and consistently unless they're fed.

In other words, don't worry about whether some values may be returned; just be aware that to ensure that the correct values are always returned then (for cubes which use Skipcheck) getting the feeder right is just as important as getting the formula itself right.

I totally agree withthe VOODOO part. You can learn to write a rule in an hour but it will take a life time to understand how feeders work.
Post Reply