Not Fed

Post Reply
RLReyes
Posts: 34
Joined: Thu Feb 12, 2009 7:03 pm
OLAP Product: TM1
Version: 10.1.1
Excel Version: 2010

Not Fed

Post by RLReyes »

I have the following lines for a rule & feeder that works majority of the time. There are times when the previous period ending balance does not equal the current period beginning balance. When I do a "Check Feeders", it will return a value "not fed". Thanks in advance.

###Calculate Beginning Balance
['Beginning Balance']=N:
DB('TURNOVER',!campus,!dept,!job_codes,ATTRS('Periods',!periods,'Previous_Period'),!benefits,!status,'Ending Balance');

feeders;
['Ending Balance'] => ['Beginning Balance'];
- Rod

TM1 Version: 10.1.1
Excel: 2010
David Usherwood
Site Admin
Posts: 1458
Joined: Wed May 28, 2008 9:09 am

Re: Not Fed

Post by David Usherwood »

Your rule is taking data from the previous period, so your feeder should feed to the next period.
You've been a bit lucky in that you probably had data in most periods to make your incorrect feeder work.
RLReyes
Posts: 34
Joined: Thu Feb 12, 2009 7:03 pm
OLAP Product: TM1
Version: 10.1.1
Excel Version: 2010

Re: Not Fed

Post by RLReyes »

David Usherwood wrote:You've been a bit lucky in that you probably had data in most periods to make your incorrect feeder work.
David - If it's an incorrect feeder, what do you suggest I use as a feeder?
- Rod

TM1 Version: 10.1.1
Excel: 2010
User avatar
mce
Community Contributor
Posts: 352
Joined: Tue Jul 20, 2010 5:01 pm
OLAP Product: Cognos TM1
Version: Planning Analytics Local 2.0.x
Excel Version: 2013 2016
Location: Istanbul, Turkey

Re: Not Fed

Post by mce »

Code: Select all

###Calculate Beginning Balance
['Beginning Balance']=N:
DB('TURNOVER',!campus,!dept,!job_codes,ATTRS('Periods',!periods,'Previous_Period'),!benefits,!status,'Ending Balance');

feeders;
['Ending Balance'] => DB('TURNOVER',!campus,!dept,!job_codes,ATTRS('Periods',!periods,'Next_Period'),!benefits,!status,'Beginning Balance');
AnthonyT
Posts: 42
Joined: Mon May 19, 2008 10:25 am
OLAP Product: TM1, EV
Version: 9.0 9.1 9.4 9.5 10.1 10.2
Excel Version: 2003 2007 2010 2015
Location: London, UK

Re: Not Fed

Post by AnthonyT »

Providing that you have a "Next Period" attribute on the Periods dimension
Anthony

That's no moon - that's a space station
lotsaram
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: Not Fed

Post by lotsaram »

AnthonyT wrote:Providing that you have a "Next Period" attribute on the Periods dimension
If you have any sort of financial or forecasting model that requires this kind of logic then you should have BOTH a "last period" AND a "next period" attribute end of story. Or in cases where models have a separate year and period dimension then better still a lookup string cube to store this. (Actually I wouldn't stop there but would typically have -13 to +13 offsets for year and month). To not have this is simply bad design.

Perhaps "bad design" is too strong maybe incompletely thought out, ill thought out or inexperienced would be more appropriate...

The amount of times I have audited a model to see all kinds of complicated combinations of STR, NUMBR, SCAN, SUBST to perform time shifts when a simple ATTRS or DB lookup would suffice (and be much more efficient in terms of calculation overhead) really makes me grind my teeth.
RLReyes
Posts: 34
Joined: Thu Feb 12, 2009 7:03 pm
OLAP Product: TM1
Version: 10.1.1
Excel Version: 2010

Re: Not Fed

Post by RLReyes »

Thanks everyone for your input & comments.
- Rod

TM1 Version: 10.1.1
Excel: 2010
ram123
Posts: 38
Joined: Sun May 19, 2013 10:06 am
OLAP Product: TM1
Version: 10.1
Excel Version: 2007

Re: Not Fed

Post by ram123 »

Code: Select all

...Or in cases where models have a separate year and period dimension then better still a lookup string cube to store this. (Actually I wouldn't stop there but would typically have -13 to +13 offsets for year and month). To not have this is simply bad design
Would like to get help in writing a feeder if there are -13 to +13 offsets for the time period

I don't think there is a need to write 13 feeders (for ex: dimnm(<dimname>, dimix(<dimname>,(!<dimname>)+1).. +2, +3...so on..)
I do not have the ATTRS/ATTRN (for 'Prev Period and 'Next Period') in my model.

Help appreciated!
Post Reply