Hi all,
I have a theoretical question about best practice to write feeders. Let's assume that i have three cubes with rules:
Cube A - filled manual
Cube B - some measures taked from A, some filled manual
Cube C - all taken from B
Now I can write fedders in to ways:
1. A => B, B => C
2. A => B;C, B => C
Is there a difference between this two ways, leaving asside over and underfeeding?
Feeder best practice question
-
- MVP
- Posts: 1828
- 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: Feeder best practice question
First of all to check if I understood your question:
Cube C is rule derived from values in Cube B which is rule derived from values in Cube A
You want to know if there is any difference in feeding Cube C from Cube A as opposed to feeding Cube C from Cube B?
If the above is correct (and you aren't interested in overfeeding/underfeeding) it doesn't matter where your feeder comes from, you could have a separate 2-d Cube with only 1 cell which is populated with a number and then feed everything from there if you did so desire.
TM1 doesn't check if where you are feeding from has any relevance to what you are feeding, all it checks is if where you feed from has a value in it.
HTH
Edit - If you are talking in true best practice terms however, make sure it is easier to follow (possibly with comments) so that anyone with a reasonable understanding could come in and see why things are being done the way they are.
Cube C is rule derived from values in Cube B which is rule derived from values in Cube A
You want to know if there is any difference in feeding Cube C from Cube A as opposed to feeding Cube C from Cube B?
If the above is correct (and you aren't interested in overfeeding/underfeeding) it doesn't matter where your feeder comes from, you could have a separate 2-d Cube with only 1 cell which is populated with a number and then feed everything from there if you did so desire.
TM1 doesn't check if where you are feeding from has any relevance to what you are feeding, all it checks is if where you feed from has a value in it.
HTH
Edit - If you are talking in true best practice terms however, make sure it is easier to follow (possibly with comments) so that anyone with a reasonable understanding could come in and see why things are being done the way they are.
Declan Rodger
-
- Posts: 24
- Joined: Tue Dec 06, 2011 10:21 am
- OLAP Product: TM1
- Version: 9.5.2
- Excel Version: 2010
Re: Feeder best practice question
Thank you,
That's want i wanted to know.
That's want i wanted to know.
-
- Posts: 1
- Joined: Wed Sep 10, 2014 6:41 am
- OLAP Product: Tm1
- Version: 10.2
- Excel Version: 2010
Re: Feeder best practice question
I have same question but for a single cube. Suppose two of the dimension of a cube are A and B.
So, which one is a better technique or it doesn't matter?
1) [A1]=>[B1]; [B1]=>[B2];
2) [A1] => [{B1,B2}];
Thanks!
So, which one is a better technique or it doesn't matter?
1) [A1]=>[B1]; [B1]=>[B2];
2) [A1] => [{B1,B2}];
Thanks!
-
- MVP
- Posts: 3701
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: Feeder best practice question
Note that your pseudo code is incorrect, you can't use {B1,B2} on the right-hand side of a feeder. The correct syntax is:NV_tm1 wrote:So, which one is a better technique or it doesn't matter?
1) [A1]=>[B1]; [B1]=>[B2];
2) [A1] => [{B1,B2}];
['A1'] => ['B1'],['B1'];
(You could also feed 'B' assuming B is a consolidation of B1 & B2.)
I would usually prefer to feed from the original source data, that is option 2, because this is more efficient. However sometimes including the intermediate calculation chain in the feeders is worthwhile as this can be more transparent to other developers and can cut down on overfeeding where an intermediate calculation is zero it shouldn't feed to further cells.
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
-
- MVP
- Posts: 3229
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: Feeder best practice question
Watch out... I've seen too many people feeding towards consolidated cells in the past...lotsaram wrote:(You could also feed 'B' assuming B is a consolidation of B1 & B2.)

Best regards,
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
- jim wood
- Site Admin
- Posts: 3958
- Joined: Wed May 14, 2008 1:51 pm
- OLAP Product: TM1
- Version: PA 2.0.7
- Excel Version: Office 365
- Location: 37 East 18th Street New York
- Contact:
Re: Feeder best practice question
Agreed. I've also seen feeding from consolidations in the past that can be avoided, although both the above and this case they can be needed.Wim Gielis wrote:Watch out... I've seen too many people feeding towards consolidated cells in the past...
As for the original question, I always try to feed with a physical value if possible. If you have a physical value cube A which is used in a calculation in cube B then as expected you'd feed with A->B. Then if you have a value in C calculated using the calculated value in B I alwasy try to feed with the value in A rather than the calculated value in B (so A->C). As you might expect this always the best way to go,
Jim.
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
-
- Community Contributor
- Posts: 324
- Joined: Mon Jul 02, 2012 9:39 pm
- OLAP Product: TM1
- Version: PAL 2.0.8
- Excel Version: 2016
- Location: Sydney, Australia
Re: Feeder best practice question
I agree with Jim on feeding from the physical value rather than from the value which itself has been fed , otherwise it becomes a nightmare to trace and debug in models with heavy rules.
Just make sure to make clear notes in your rules for other developer to understand the chain of events
Just make sure to make clear notes in your rules for other developer to understand the chain of events
