Hi All,
I'm trying to write a rule that effectively "hides" all of our legacy Cost Centres from our users by updating the Element Security Cube relating to the Responsibility Centre.
So the logic for the rule is:
If the Responsibility Centre is in the "Legacy RC" consolidation & the Responsibility Centre does not exist in any of the other 6 Consolidations, change the access to "NONE" otherwise leave as "WRITE".
My preference is not to hard code the names of the 6 Consolidations into the rule when I check that the RC does not exist in them with an ELISPAR formula.
Does anyone know if it's possible to have TM1 determine the 6 Consolidations? I thought about the MDX function "TopCount" but the total number of consolidations might change from the current 6...
Finding all of the top level heirarchy/consolidated elements
-
- Site Admin
- Posts: 6667
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: Finding all of the top level heirarchy/consolidated elem
You could base the test on:RJ! wrote:Hi All,
I'm trying to write a rule that effectively "hides" all of our legacy Cost Centres from our users by updating the Element Security Cube relating to the Responsibility Centre.
So the logic for the rule is:
If the Responsibility Centre is in the "Legacy RC" consolidation & the Responsibility Centre does not exist in any of the other 6 Consolidations, change the access to "NONE" otherwise leave as "WRITE".
My preference is not to hard code the names of the 6 Consolidations into the rule when I check that the RC does not exist in them with an ELISPAR formula.
Does anyone know if it's possible to have TM1 determine the 6 Consolidations? I thought about the MDX function "TopCount" but the total number of consolidations might change from the current 6...
- ElIsPar to check whether the cost centre is in Legacy RC; and
- ElParN to check the number of parents.
If the first returns 1 to show that it's in that consolidation, and the second returns 1 (meaning that it's ONLY used in that consolidation), then you know it's one that you want to hide. Otherwise, it's one that is still in a "live" consolidation, regardless of the name of that consolidation. (And regardless of whether the 6 become 7 or 8 or whatever at some time in the future.) Then the only thing that you need to keep constant is the name of the Legacy RC consolidation.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.