cube to cube-Feeder

Post Reply
proggi
Posts: 4
Joined: Tue Jan 08, 2013 12:12 pm
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2003
Location: Cologne, Germany

cube to cube-Feeder

Post by proggi »

simple example:

Cube 'cActual' with Dimensions Year, Month, Keys
Cube 'cPlan' with Dimensions Year, Keys
Cube 'cDistribution' with Dimensions Year, Month, Type

Rule in Actual:

Code: Select all

['plan']=DB('cPlan', !Year, !Keys)*DB('cDistribution', !Year, !Month, 'typeLinear');
but how to feeder?

At first, it's obvious to feed in the plan-cube, but how to match the missing dimension month?

Do I need to set 12 feeder, so that every single month is fed(, due to arrays with { } are not available in feeder-target)?

Code: Select all

['Plan']=>DB('cActual', !Year, 'Jan', 'Actual');
['Plan']=>DB('cActual', !Year, 'Feb', 'Actual');
...
or is there another way to aggregate this feeder?
asutcliffe
Regular Participant
Posts: 164
Joined: Tue May 04, 2010 10:49 am
OLAP Product: Cognos TM1
Version: 9.4.1 - 10.1
Excel Version: 2003 and 2007

Re: cube to cube-Feeder

Post by asutcliffe »

proggi wrote:simple example:

Cube 'cActual' with Dimensions Year, Month, Keys
Cube 'cPlan' with Dimensions Year, Keys
Cube 'cDistribution' with Dimensions Year, Month, Type

Rule in Actual:

Code: Select all

['plan']=DB('cPlan', !Year, !Keys)*DB('cDistribution', !Year, !Month, 'typeLinear');
but how to feeder?

At first, it's obvious to feed in the plan-cube, but how to match the missing dimension month?

Do I need to set 12 feeder, so that every single month is fed(, due to arrays with { } are not available in feeder-target)?

Code: Select all

['Plan']=>DB('cActual', !Year, 'Jan', 'Actual');
['Plan']=>DB('cActual', !Year, 'Feb', 'Actual');
...
or is there another way to aggregate this feeder?
If you just want to feed all months, you can feed all child elements of a consolidation by feeding the consolidated element. Eg assuming "Jan", "Feb", "Mar" etc are all children of "All Months", you can do something like this:

Code: Select all

['Plan']=>DB('cActual', !Year, 'All Months', 'Actual');
Alternatively you can write the LHS of the feeder once and only the RHS twelve times with something like this:

Code: Select all

['Plan']=>
DB('cActual', !Year, 'Jan', 'Actual'),
DB('cActual', !Year, 'Feb', 'Actual'),
..
DB('cActual', !Year, 'Dec', 'Actual');
Of course both will overfeed if the value for the month in "cDistribution" is zero.

edit: typo
Last edited by asutcliffe on Tue Jan 08, 2013 3:57 pm, edited 1 time in total.
proggi
Posts: 4
Joined: Tue Jan 08, 2013 12:12 pm
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2003
Location: Cologne, Germany

Re: cube to cube-Feeder

Post by proggi »

Thanks!!

Too bad, as I have several Dimensions providung no consolidation by purpose. Seems to be senseful to implement consolidations for technical use only...
kempzhong
Posts: 20
Joined: Tue Aug 25, 2009 8:27 am
OLAP Product: Cognos TM1
Version: Cognos TM1 10.1.1
Excel Version: MS Excel 2010

Re: cube to cube-Feeder

Post by kempzhong »

May I know why you can't create consolidation in such dimensions?
lotsaram
MVP
Posts: 3652
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: cube to cube-Feeder

Post by lotsaram »

In our planning model we actually make quite a lot of use of consolidations that serve no calculation or reporting purpose but are there purely to send or receive feeders to the N elements they roll up. I think this is entirely valid use of consolidations from a design and model efficiency POV. Such "technical consolidations" can always be hidden from end users with element security.

Intelligent use of such consolidations can make rule maintenance a lot easier as all that is required to "update the rule" is not to update the rule but to do a simple structure change in the relevant dimension with the technical consolidation. (note a reprocess feeders might be required if going from a less to more feeders situation.)
proggi
Posts: 4
Joined: Tue Jan 08, 2013 12:12 pm
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2003
Location: Cologne, Germany

Re: cube to cube-Feeder

Post by proggi »

to kempzhong: for example in Month are data by timestamp like 'actual stock', so you can't sum them up to a full year sum (...and if user see a consolidation they'll use it...)

to lotsaram: to use consolidation for technical purpose and hiding them for endusers sounds good to me and appears to be a useful approach. (Gives me a good feeling to do so... :D )

:!: Thank you very much :!:
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: cube to cube-Feeder

Post by Duncan P »

Just check that you don't have this situation here - Re: TI load data with delayed rule and feed recalculation.

If you are feeding from many source cells to each consolidated cell, and that consolidated cell is propagating down to many target cells your feeder load times could increase dramatically, which could also affect dimension save and rule save times.
Wim Gielis
MVP
Posts: 3114
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.0.9.18
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: cube to cube-Feeder

Post by Wim Gielis »

Indeed Duncan P. Feeding to consolidations (hence feeding all lowest-level children) might not be a good approach in many cases.
Certainly not feeding consolidations in 2 or more dimensions in any cube that is not trivial.

Writing feeders can sometimes be an art, you know. It requires one to think outside the box.
For example, feeding in a completely different way and starting from other elements.
Or feeding conditionally.

Or even using a (hidden) "Feeder" measure (filled with the value 1 through TI) that fires off feeders...
This is not as "easy" as the usual feeders logic (i.e. just reverse the rule logic) but your application will benefit heavily.
Best regards,

Wim Gielis

IBM Champion 2024
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
Post Reply