I need to write a rule to apply an excahge rate. I was wondering how to write the area to include the elements of a consolidation without having to include all elements. Below is the syntax I am currently using. I would like to shorten it if possible.
['5080','5090','5091','5093','US$','Actual'] = N:IF(numbr(!Financial Accounts)>290000,(DB('Financials', !CoCost, !Financial Accounts, !Version, !Departments, !Month, 'CD$')/DB('Exchange Rate','CDA AVERAGE EXCHANGE RATE',!Month)),0);
There are many more costcenters than what is shown above. I want to include all elements of
"C0 50 Canada" without having to input them all into the area of the rule. Is there a way to do this?
Thank you,
Mark
Syntax for Area in Rule
-
- Posts: 29
- Joined: Tue Jul 08, 2008 5:00 pm
- OLAP Product: TM1
- Version: 10.1.1
- Excel Version: 2010
Syntax for Area in Rule
TM1 version 9.1 using excel 2003
- Martin Ryan
- Site Admin
- Posts: 1989
- Joined: Sat May 10, 2008 9:08 am
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2010
- Location: Wellington, New Zealand
- Contact:
Re: Syntax for Area in Rule
The answer is in "elisanc" i.e. elisanc('Dimension', !Elem, 'Consolidation')"
['US$','Actual'] = N:IF(elisanc('CoCost', !CoCost, 'C0 50 Canada'),(DB('Financials', !CoCost, !Financial Accounts, !Version, !Departments, !Month, 'CD$')/DB('Exchange Rate','CDA AVERAGE EXCHANGE RATE',!Month)),continue);
HTH,
Martin
['US$','Actual'] = N:IF(elisanc('CoCost', !CoCost, 'C0 50 Canada'),(DB('Financials', !CoCost, !Financial Accounts, !Version, !Departments, !Month, 'CD$')/DB('Exchange Rate','CDA AVERAGE EXCHANGE RATE',!Month)),continue);
HTH,
Martin
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
Jodi Ryan Family Lawyer
-
- Posts: 29
- Joined: Tue Jul 08, 2008 5:00 pm
- OLAP Product: TM1
- Version: 10.1.1
- Excel Version: 2010
Re: Syntax for Area in Rule
Thanks. I will try that. How about having the exchange rate only calculte for the month and then the consolidated element will ne the sum of the months for a YTD?
Thanks again,
Mark
Thanks again,
Mark
TM1 version 9.1 using excel 2003
- Martin Ryan
- Site Admin
- Posts: 1989
- Joined: Sat May 10, 2008 9:08 am
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2010
- Location: Wellington, New Zealand
- Contact:
Re: Syntax for Area in Rule
That will happen automatically because your rule says "N:" this means the rule is only applied at the leaf (N) level, and that consolidations will still be consolidations.
To make the rule apply to everything, N and C level regardless, remove the "N:".
To make a rule apply only to C level, make the N: a C:
Martin
To make the rule apply to everything, N and C level regardless, remove the "N:".
To make a rule apply only to C level, make the N: a C:
Martin
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
Jodi Ryan Family Lawyer
-
- Posts: 29
- Joined: Tue Jul 08, 2008 5:00 pm
- OLAP Product: TM1
- Version: 10.1.1
- Excel Version: 2010
Re: Syntax for Area in Rule
That is what I was hoping would happen so I will just leave in the N:. Thanks again for the help.
TM1 version 9.1 using excel 2003
- Eric
- MVP
- Posts: 373
- Joined: Wed May 14, 2008 1:21 pm
- OLAP Product: TM1
- Version: 9.4
- Excel Version: 2003
- Location: Chicago, IL USA
Re: Syntax for Area in Rule
Try['5080','5090','5091','5093','US$','Actual']
[{'5080','5090','5091','5093'},'US$','Actual']
Regards,
Eric
Blog: http://tm1-tipz.blogspot.com
Articles: http://www.google.com/reader/shared/use ... /label/TM1
Production: 32 bit 9.0 SP2, Windows 2000 Advanced Server. Web: 32 bit 9.0 SP2, Windows 2000 Server. Excel 2003
Eric
Blog: http://tm1-tipz.blogspot.com
Articles: http://www.google.com/reader/shared/use ... /label/TM1
Production: 32 bit 9.0 SP2, Windows 2000 Advanced Server. Web: 32 bit 9.0 SP2, Windows 2000 Server. Excel 2003