Page 1 of 1
feeders for Elpar in the rule
Posted: Thu Oct 31, 2013 11:42 pm
by macsir
Hi, all
The following is the rule for a Enrol Ratio cube. It is getting base ratio from a Ratio cube by doing it at upper level of program. I am wondering if the feeder is right or not and over-feeding?
Code: Select all
SKIPCHECK;
['Enrol Ratio'] = DB('Ratio',!Scenario,!Location,ELPAR('Program',!Program,1),!Course,'Base Ratio');
FEEDERS;
['Base Ratio'] => DB('Ratio',!Scenario,!Location,'All Programs',!Course,'Enrol Ratio');
Re: feeders for Elpar in the rule
Posted: Fri Nov 01, 2013 12:05 am
by EvgenyT
macsir wrote:Hi, all
The following is the rule for a Enrol Ratio cube. It is getting base ratio from a Ratio cube by doing it at upper level of program. I am wondering if the feeder is right or not and over-feeding?
Code: Select all
SKIPCHECK;
['Enrol Ratio'] = DB('Ratio',!Scenario,!Location,ELPAR('Program',!Program,1),!Course,'Base Ratio');
FEEDERS;
['Base Ratio'] => DB('Ratio',!Scenario,!Location,'All Programs',!Course,'Enrol Ratio');
You are very likely to overfeed if you are feeding a consolidation, remember all the children underneath will be feed .
Re: feeders for Elpar in the rule
Posted: Fri Nov 01, 2013 12:28 am
by macsir
EvgenyT wrote:macsir wrote:Hi, all
The following is the rule for a Enrol Ratio cube. It is getting base ratio from a Ratio cube by doing it at upper level of program. I am wondering if the feeder is right or not and over-feeding?
Code: Select all
SKIPCHECK;
['Enrol Ratio'] = DB('Ratio',!Scenario,!Location,ELPAR('Program',!Program,1),!Course,'Base Ratio');
FEEDERS;
['Base Ratio'] => DB('Ratio',!Scenario,!Location,'All Programs',!Course,'Enrol Ratio');
You are very likely to overfeed if you are feeding a consolidation, remember all the children underneath will be feed .
Yes, I know but how to improve it? Any idea?

Re: feeders for Elpar in the rule
Posted: Fri Nov 01, 2013 12:50 am
by EvgenyT
Im not sure if this approach would suit your model, but you could create Feeder Consolidations in Program dimension to get more precise feeding
Re: feeders for Elpar in the rule
Posted: Fri Nov 01, 2013 1:04 am
by macsir
EvgenyT wrote:Im not sure if this approach would suit your model, but you could create Feeder Consolidations in Program dimension to get more precise feeding
Thanks but what do you mean by Feeder Consolidations? Could you give me a general example?
Re: feeders for Elpar in the rule
Posted: Fri Nov 01, 2013 1:32 am
by Wim Gielis
Why do you feed this calculation? You have a rule at C level, which overrides the default aggregation algorithm in TM1.
Re: feeders for Elpar in the rule
Posted: Fri Nov 01, 2013 1:34 am
by EvgenyT
Wim Gielis wrote:Why do you feed this calculation? You have a rule at C level, which overrides the default aggregation algorithm in TM1.
You are right Wim, sorry I overlooked the calculation statement.
Re: feeders for Elpar in the rule
Posted: Fri Nov 01, 2013 1:37 am
by macsir
Wim Gielis wrote:Why do you feed this calculation? You have a rule at C level, which overrides the default aggregation algorithm in TM1.
If no feeders, all the C level program of Enrol Ratio will be unfed?
Re: feeders for Elpar in the rule
Posted: Fri Nov 01, 2013 1:56 am
by macsir
Sorry for the confusion, I think the complete code is the following and the value in Assumption cube is not zero.
Code: Select all
SKIPCHECK;
['Enrol Ratio'] = DB('Ratio',!Scenario,!Location,ELPAR('Program',!Program,1),!Course,'Base Ratio') * DB('Assumption','Medium Program Weight','value');
FEEDERS;
['Base Ratio'] => DB('Ratio',!Scenario,!Location,'All Programs',!Course,'Enrol Ratio');
Re: feeders for Elpar in the rule
Posted: Fri Nov 01, 2013 5:49 am
by macsir
Ok, I think I have got it. The following code should be fine. The reason I am using the root element 'All Programs' is that in the rule, there are other ELPAR , such as ELPAR('Program',ELPAR('Program',!Program,1),1) etc. which across all the level of this program dimension. That's why I am using the root consolidation to feed all the programs.
But in order to get better performance, I would like to try attribute rather than ELPAR in the rule.
Code: Select all
SKIPCHECK;
['Enrol Ratio'] = DB('Ratio',!Scenario,!Location,ELPAR('Program',!Program,1),!Course,'Base Ratio') * DB('Assumption','Medium Program Weight','value');
FEEDERS;
['Base Ratio'] => DB('Ratio',!Scenario,!Location,ELPAR('Program',!Program,1),!Course,'Enrol Ratio');
Re: feeders for Elpar in the rule
Posted: Fri Nov 01, 2013 9:40 am
by Wim Gielis
Is this rule writting the Ratio cube, or a different one?
If different, what is the dimensionality?
Re: feeders for Elpar in the rule
Posted: Fri Nov 01, 2013 10:48 am
by Duncan P
Since someone has mentioned feeding C level calculations I think I will just pop this reference in as a reminder of the complications
Supress Zero and FEEDERs.
Re: feeders for Elpar in the rule
Posted: Sun Nov 03, 2013 11:28 pm
by macsir
Wim Gielis wrote:Is this rule writting the Ratio cube, or a different one?
If different, what is the dimensionality?
It is the ratio cube.
Re: feeders for Elpar in the rule
Posted: Sun Nov 03, 2013 11:45 pm
by macsir
Duncan P wrote:Since someone has mentioned feeding C level calculations I think I will just pop this reference in as a reminder of the complications
Supress Zero and FEEDERs.
Thanks, duncan. I have checked that.
Re: feeders for Elpar in the rule
Posted: Sun Nov 03, 2013 11:46 pm
by macsir
macsir wrote:Ok, I think I have got it. The following code should be fine. The reason I am using the root element 'All Programs' is that in the rule, there are other ELPAR , such as ELPAR('Program',ELPAR('Program',!Program,1),1) etc. which across all the level of this program dimension. That's why I am using the root consolidation to feed all the programs.
But in order to get better performance, I would like to try attribute rather than ELPAR in the rule.
Code: Select all
SKIPCHECK;
['Enrol Ratio'] = DB('Ratio',!Scenario,!Location,ELPAR('Program',!Program,1),!Course,'Base Ratio') * DB('Assumption','Medium Program Weight','value');
FEEDERS;
['Base Ratio'] => DB('Ratio',!Scenario,!Location,ELPAR('Program',!Program,1),!Course,'Enrol Ratio');
I have finished testing with attributes. And it does take less memory and better performance than ELPAR in the rule. Next time, if that is the case, I will use attributes directly.
