Not able to feed a rule that has ATTRS and consolidation

Post Reply
guru1988fortm1
Posts: 42
Joined: Mon Feb 06, 2012 5:52 pm
OLAP Product: Cognos TM1
Version: PA 2.0.3
Excel Version: Micrsoft Excel 2010
Location: Chennai, India

Not able to feed a rule that has ATTRS and consolidation

Post by guru1988fortm1 »

Hi All,

I am using Cognos TM1 9.5.2 version

I have a rule as follows

{'1 Month premium Profile','3 Months premium Profile',
'6 Months premium Profile',
'9 Months premium Profile',
'12 Months premium Profile',
'18 Months premium Profile',
'24 Months premium Profile',
'30 Months premium Profile',
'36 Months premium Profile',
'48 Months premium Profile',
'60 Months premium Profile'},'UPRBudgetActuals']=N:
DB('LA_PLN_PremLoss_UPR','Budget',!Currency,'All_Business_type',ATTRS('Country',!Country,'CntryCode'),ATTRS('Operating Unit',!Operating Unit,'OperatingunitCode'),,DB('LA_PLN_PlanCycle_Lkp','Budget_Year','Current_Period'),!Month,ATTRS('PS_Accounts',!PS_Accounts,'Assumption'))\
DB('LA_PLN_PremLoss_UPR','Budget',!Currency,'All_Business_type',ATTRS('Country',!Country,'CntryCode'),ATTRS('Operating Unit',!Operating Unit,'OperatingunitCode'),DB('LA_PLN_PlanCycle_Lkp','Budget_Year','Current_Period'),!Month,'NWP.')

The ATTRS of ATTRS('PS_Accounts',!PS_Accounts,'Assumption') returns 1 Month NWP, 3 Months NWP Correspondigly

The ATTRS of Country and operating unit gives the consolidated elements (Eg., Total Argentina, Total Brazil)

I tried all possible ways to write feeders for this rule as

['NWP.']=>['1 Month Premium Profile','UPR Budget Actuals']
['NWP.','Total Contry','Total Operating Unit']=>['1 Month Premium Profile','UPR Budget Actuals']
['NWP.','Total Contry','Total Operating Unit','All_BusinessType']=>['1 Month Premium Profile','UPR Budget Actuals']

But it is not feeding :oops:

So, can anyone please suggest me how to write feeders for this rule

Thanks
Regards
Guru
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: Not able to feed a rule that has ATTRS and consolidation

Post by Wim Gielis »

Hello

In copy/pasting, you missed the [ character as the first character and the ; as the last character. I hope this wasn't intentionally.
Why does your measure end in a period (NWP.) ? While it should work fine, it looks a bit weird.

On-topic:
- does your rule calculate correctly at N-level?
- is your C-level result supposed to be a sum of the fractions you have at N-level?

Wim
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
User avatar
Martin Ryan
Site Admin
Posts: 2003
Joined: Sat May 10, 2008 9:08 am
OLAP Product: TM1
Version: 10.1
Excel Version: 2010
Location: Wellington, New Zealand
Contact:

Re: Not able to feed a rule that has ATTRS and consolidation

Post by Martin Ryan »

Are you sure it's the feeder? The rule is the complicated part, try it without skipcheck and feeders to see if that makes a difference.

In the rule you've got two commas side by side, this will prevent the rule working

DB('LA_PLN_PremLoss_UPR','Budget',!Currency,'All_Business_type',ATTRS('Country',!Country,'CntryCode'),ATTRS('Operating Unit',!Operating Unit,'OperatingunitCode'),,DB('LA_PLN_PlanCycle_Lkp','Budget_Year','Current_Period'),!Month,ATTRS('PS_Accounts',!PS_Accounts,'Assumption'))\
DB('LA_PLN_PremLoss_UPR','Budget',!Currency,'All_Business_type',ATTRS('Country',!Country,'CntryCode'),ATTRS('Operating Unit',!Operating Unit,'OperatingunitCode'),DB('LA_PLN_PlanCycle_Lkp','Budget_Year','Current_Period'),!Month,'NWP.')
Please do not send technical questions via private message or email. Post them in the forum where you'll probably get a faster reply, and everyone can benefit from the answers.
Jodi Ryan Family Lawyer
Post Reply