Rule to exclude consolidation element values for a measure that is related to only lower level element in a hierarchy

Post Reply
Analytics123
Posts: 128
Joined: Tue May 23, 2017 12:45 pm
OLAP Product: Tm1
Version: 9.5
Excel Version: 2010

Rule to exclude consolidation element values for a measure that is related to only lower level element in a hierarchy

Post by Analytics123 »

Hi All,

I got stuck at this point and not sure if there is any way possible to achieve this .

I have a customer dimension with a hierarchy Region, Agency, Reps and Customer . And the other dimension in cube are currency , months and Gl Account.

Now I am having a measure loaded to the cube via a TI Process which would store the DaysSincePayment . This measure should be applicable only to the customers .

So now the issue I am having is say a region 1 -> Agency ->1 has 5 customers the ,DaysSincePayment is rolled up at consolidated levels .

I always wanted the consolidated level of customer dimension to show 0 for DaysSincePayment as they dont relate to them .

I tried this rule but it set 0 to all elements
['Days Since Payment']=C:0;
I also tried
['Days Since Payment']=C:STET; but the values for consolidation still exists.


I am not sure if we can use a subset with all consolidated elements from customers dimension and use them in rule to set it to 0 for DaysSincePayment , but i think thats not possible .


Any help is appreciated .

Thanks,
Edward Stuart
Community Contributor
Posts: 248
Joined: Tue Nov 01, 2011 10:31 am
OLAP Product: TM1
Version: All
Excel Version: All
Location: Manchester
Contact:

Re: Rule to exclude consolidation element values for a measure that is related to only lower level element in a hierarch

Post by Edward Stuart »

Have you considered rule prescedence?

What happens to the values when you move the C level rule to the top of the rules file?
Wim Gielis
MVP
Posts: 3240
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: Rule to exclude consolidation element values for a measure that is related to only lower level element in a hierarch

Post by Wim Gielis »

Hi,

Indeed, consider:
- rule precedence
- the ELLEV function
- the ELISANC function

because if I understand the problem you will need to make a distinction for different kinds of consolidated cells.
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
Analytics123
Posts: 128
Joined: Tue May 23, 2017 12:45 pm
OLAP Product: Tm1
Version: 9.5
Excel Version: 2010

Re: Rule to exclude consolidation element values for a measure that is related to only lower level element in a hierarch

Post by Analytics123 »

okay , I used this and it looks okay now , not sure if I need to use any other checks here .

['Days Since Payment' ] = IF ( ELLEV('Customers SoldTo Only', !Customers SoldTo Only) <> 0,0,Continue );

Thanks for your help .
Post Reply