feeders for Elpar in the rule

Post Reply
User avatar
macsir
MVP
Posts: 785
Joined: Wed May 30, 2012 6:50 am
OLAP Product: TM1
Version: PAL 2.0.9
Excel Version: Office 365
Contact:

feeders for Elpar in the rule

Post 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');
In TM1,the answer is always yes though sometimes with a but....
http://tm1sir.blogspot.com.au/
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 for Elpar in the rule

Post 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 .
User avatar
macsir
MVP
Posts: 785
Joined: Wed May 30, 2012 6:50 am
OLAP Product: TM1
Version: PAL 2.0.9
Excel Version: Office 365
Contact:

Re: feeders for Elpar in the rule

Post 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? :geek:
In TM1,the answer is always yes though sometimes with a but....
http://tm1sir.blogspot.com.au/
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 for Elpar in the rule

Post 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
User avatar
macsir
MVP
Posts: 785
Joined: Wed May 30, 2012 6:50 am
OLAP Product: TM1
Version: PAL 2.0.9
Excel Version: Office 365
Contact:

Re: feeders for Elpar in the rule

Post 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?
In TM1,the answer is always yes though sometimes with a but....
http://tm1sir.blogspot.com.au/
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 for Elpar in the rule

Post by Wim Gielis »

Why do you feed this calculation? You have a rule at C level, which overrides the default aggregation algorithm in TM1.
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
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 for Elpar in the rule

Post 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.
User avatar
macsir
MVP
Posts: 785
Joined: Wed May 30, 2012 6:50 am
OLAP Product: TM1
Version: PAL 2.0.9
Excel Version: Office 365
Contact:

Re: feeders for Elpar in the rule

Post 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?
In TM1,the answer is always yes though sometimes with a but....
http://tm1sir.blogspot.com.au/
User avatar
macsir
MVP
Posts: 785
Joined: Wed May 30, 2012 6:50 am
OLAP Product: TM1
Version: PAL 2.0.9
Excel Version: Office 365
Contact:

Re: feeders for Elpar in the rule

Post 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');
In TM1,the answer is always yes though sometimes with a but....
http://tm1sir.blogspot.com.au/
User avatar
macsir
MVP
Posts: 785
Joined: Wed May 30, 2012 6:50 am
OLAP Product: TM1
Version: PAL 2.0.9
Excel Version: Office 365
Contact:

Re: feeders for Elpar in the rule

Post 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');
In TM1,the answer is always yes though sometimes with a but....
http://tm1sir.blogspot.com.au/
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 for Elpar in the rule

Post by Wim Gielis »

Is this rule writting the Ratio cube, or a different one?
If different, what is the dimensionality?
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
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: feeders for Elpar in the rule

Post 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.
User avatar
macsir
MVP
Posts: 785
Joined: Wed May 30, 2012 6:50 am
OLAP Product: TM1
Version: PAL 2.0.9
Excel Version: Office 365
Contact:

Re: feeders for Elpar in the rule

Post 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.
In TM1,the answer is always yes though sometimes with a but....
http://tm1sir.blogspot.com.au/
User avatar
macsir
MVP
Posts: 785
Joined: Wed May 30, 2012 6:50 am
OLAP Product: TM1
Version: PAL 2.0.9
Excel Version: Office 365
Contact:

Re: feeders for Elpar in the rule

Post 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.
In TM1,the answer is always yes though sometimes with a but....
http://tm1sir.blogspot.com.au/
User avatar
macsir
MVP
Posts: 785
Joined: Wed May 30, 2012 6:50 am
OLAP Product: TM1
Version: PAL 2.0.9
Excel Version: Office 365
Contact:

Re: feeders for Elpar in the rule

Post 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. :D
In TM1,the answer is always yes though sometimes with a but....
http://tm1sir.blogspot.com.au/
Post Reply