Feeders not working when new time periods added

Post Reply
Tony
Posts: 3
Joined: Sat Mar 22, 2014 9:50 am
OLAP Product: not sure
Version: 9.5.0
Excel Version: 2010

Feeders not working when new time periods added

Post by Tony »

We’re doing a two year forecast and I just recently added the 2015 month/quarters time periods. I’m having trouble with the feeders and it’s not doing the aggregation in the calculation cube for the newly added time periods.

I have two headcount cubes, one is the input and the other is the calculation. In the calculation cube the individual employees’ salary, taxes, bonuses get calculated for 2015 but the total employee line did not. This total is the one that is linked to the salary account in the opex cube. It looks odd that you’ll see that there’s total until Dec/14 then zero afterwards.

I’ve run CubeProcessFeeders, reloaded the rules to refire the feeders, checked the cube rules and checked dimension attributes but nothing seemed to be working. I’m running out of ideas and I’m getting very frustrated.

Thanks in advance for your input.
TV
EvgenyT
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: Feeders not working when new time periods added

Post by EvgenyT »

Hello there,

Can you please post the rules / feeders to review

Thank you

Evgeny
Wim Gielis
MVP
Posts: 3241
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: Feeders not working when new time periods added

Post by Wim Gielis »

Hi

Did you investigate Check feeders (at the consolidated level) and Trace feeders (at the lowest level) ?
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
Tony
Posts: 3
Joined: Sat Mar 22, 2014 9:50 am
OLAP Product: not sure
Version: 9.5.0
Excel Version: 2010

Re: Feeders not working when new time periods added

Post by Tony »

I am attaching the rules file copied paste in word for both the headcount input (i_hcinput) and calculation (c_hccalc). But I also want to point out that it's also happening in the other cubes that are doing calculation like the depreciation of asset where the expense stops on Dec 14 and nothing afterwards,

Thanks
Tony
Attachments
i_hcinput.docx
(15.13 KiB) Downloaded 190 times
c_hccalc.docx
(21.29 KiB) Downloaded 180 times
David Usherwood
Site Admin
Posts: 1458
Joined: Wed May 28, 2008 9:09 am

Re: Feeders not working when new time periods added

Post by David Usherwood »

Looks like these feeders are the ones to follow up.

Code: Select all

HCINPUT
['Annual Salary' ] => ['FeederFlag'];
['Hourly Rate' ] => ['FeederFlag']; (Doubt you need this, BTW)
['FeederFlag' ]  => DB('c_hccalc', !v_generic, 'All Time', !h_hc_list, !h_cost_center, 'FeederFlag');

HCCALC
['FeederFlag' ]  => ['Headcount' ];
(headcount then feeds lots of lines)
However your rules look stranger:

Code: Select all

HCINPUT
['FeederFlag' ] = N: IF((['Annual Salary' ] + ['Hourly Rate' ]) = 0, 0, CONTINUE);
['FeederFlag' ] = N: IF(ATTRS('h_hc_list', !h_hc_list, 'EmployeeType') @= 'New' &
				DB('i_hcinput', !v_generic, !h_hc_list, !h_cost_center, 'Hire Month') @= '', 0, CONTINUE);
['FeederFlag' ] = N: IF(['Quantity'] > 0, ['Quantity'], 1);
Follow through FeederFlag to see whether it is present for the new time periods. When you get it to work, refire the feeders by resaving the rules, first for HCINPUT, then for HCCALC.
But, myself, I would simplify the feeder logic significantly - feed from Annual Salary, then (depending on your time structures) over to HCCALC from years to months.
HTH
Tony
Posts: 3
Joined: Sat Mar 22, 2014 9:50 am
OLAP Product: not sure
Version: 9.5.0
Excel Version: 2010

Re: Feeders not working when new time periods added

Post by Tony »

The feederflag is present to the employee level (lowest level) in the the new time periods. All the calculations seem to be working but when they get aggregated to the Total Employees that is when everything is blank.

I'm doing some testing by adding an additional feeder by feeding the annual salary directly from the input to the base salary in the calculation just in case there's something wrong with the feederflag. But noting happened either.

I'll look at your suggestion and will focus on the feederflag again.

Thanks
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: Feeders not working when new time periods added

Post by tomok »

Your feeder logic is a prime example of how "not" to do feeders. You should never feed from a rule-calculated cell (one which itself must be fed) and definitely never have multi-level feeding. Just because your Feeder_Flag cell has a value does not mean it will successfully feed something else. It has to have a value and itself have been fed in order to be able to use it as a feeder for something else. Just looking at the Feeder_Flag value will not tell if it has been fed. You have to trace it to make sure. When you have muti-tiered feeding like this it can be almost impossible to diagnose when a problem occurs. ALWAY feed from an actual value, not a rule calculated value. In your case this would be Annual Salary I think, and do what David suggested.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
Post Reply