Exclude rule-based measures in Drill Assigment Rule

Post Reply
bunchukokoy
Regular Participant
Posts: 197
Joined: Thu Dec 03, 2009 8:47 am
OLAP Product: IBM Cognos TM1
Version: 10.2.2.x
Excel Version: 2010
Location: Singapore

Exclude rule-based measures in Drill Assigment Rule

Post by bunchukokoy »

Hi Guys,

I have an existing Drill Assignment Rules in which Drill Rules are indicated for each measure I put in that rules.
Here's the sample.
['line void amount']=S:IF((dimix('report month',subst(!period,1,3))<=12 % subst(!period,3,1)@='/') & ellev('period',!period)<=1 & ellev('site',!site)<=2 & ellev('ebr_employees',!ebr_employees)<=1,'ebr','');
['line void count']=S:IF((dimix('report month',subst(!period,1,3))<=12 % subst(!period,3,1)@='/') & ellev('period',!period)<=1 & ellev('site',!site)<=2 & ellev('ebr_employees',!ebr_employees)<=1,'ebr','');
['void txn amount']=S:IF((dimix('report month',subst(!period,1,3))<=12 % subst(!period,3,1)@='/') & ellev('period',!period)<=1 & ellev('site',!site)<=2 & ellev('ebr_employees',!ebr_employees)<=1,'ebr','');
As you can see, the rules for each measure are all the same. I actually have 20 more measures for this rule.

What I want to happen is to have just one line for all of those measures. But my measure dimension also contains rule-based measures that I want to exclude in drill troufh function.

I am imagining, I can just put

[]=S:IF((dimix('report month',subst(!period,1,3))<=12 % subst(!period,3,1)@='/') & ellev('period',!period)<=1 & ellev('site',!site)<=2 & ellev('ebr_employees',!ebr_employees)<=1,'ebr','');

But this rule will work for rule-based measures. CellIsupdatable can be used but if I do, this will exclude consolidated elements for TI-uploaded measures.

Is there other solution for this?

Thanks in advance.

Bunch
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: Exclude rule-based measures in Drill Assigment Rule

Post by Wim Gielis »

Hi Bunch

The easiest would be to use [] while you insert an IF test to look at a particular attribute: to know if you want to drill or not.
So use a Text attribute (for example, "Drill-through measure") using Y/N and the Attrs function will read that value Y/N.
I imagine this list of drillable measures to be quite static so a Text attribute will be fine.
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
bunchukokoy
Regular Participant
Posts: 197
Joined: Thu Dec 03, 2009 8:47 am
OLAP Product: IBM Cognos TM1
Version: 10.2.2.x
Excel Version: 2010
Location: Singapore

Re: Exclude rule-based measures in Drill Assigment Rule

Post by bunchukokoy »

Yes Sir,

I have thought of this one. Although with this, the text attribute should be maintained if ever new measures will be added. But yes this one is the best solution I guess.

Thank you Sir Wim.

Bunch
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: Exclude rule-based measures in Drill Assigment Rule

Post by Wim Gielis »

bunchukokoy wrote:Yes Sir,

I have thought of this one. Although with this, the text attribute should be maintained if ever new measures will be added. But yes this one is the best solution I guess.

Thank you Sir Wim.

Bunch
You could present an Excel spreadsheet or Websheet to update the attribute.
Don't think that maintaining drill rules will be as easy... ;-)
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
Post Reply