creating a formula based on current member

Post Reply
stingo
Posts: 69
Joined: Mon Sep 27, 2010 2:46 pm
OLAP Product: Cognos TM1
Version: 9.1 onwards
Excel Version: client dependant
Location: UK, CH, BE

creating a formula based on current member

Post by stingo »

Hi All,

I'm translating a system from SAP BPC to TM1, I have to create a formula like:

[VL_0000000_D]= if currentmember = DB('APS_PnL',!APS_Entity,'VL_0000000',!APS_RPTCurrency,!APS_DataSrc,!APS_Scenario,!APS_Time,!APS_Account_PnL),
DB('APS_PnL',!APS_Entity,!APS_Product_PnL,!APS_RPTCurrency,!APS_DataSrc,!APS_Scenario,!APS_Time,'VL_0000000'),
DB('APS_PnL',!APS_Entity,!APS_Product_PnL,!APS_RPTCurrency,!APS_DataSrc,!APS_Scenario,!APS_Time,ELPAR(PnL,'VL_0000000',1)

the fact is I honestly don't know how to specify the current member condition.
is there a way to specify it?

Thanks in advance.
User avatar
Michel Zijlema
Site Admin
Posts: 713
Joined: Wed May 14, 2008 5:22 am
OLAP Product: TM1, PALO
Version: both 2.5 and higher
Excel Version: 2003-2007-2010
Location: Netherlands
Contact:

Re: creating a formula based on current member

Post by Michel Zijlema »

Hi,

I'm not sure what you're expecting here, but if you're specifying a rule for the element ['VL_0000000_D'] (don't forget the single quotes), the rule will only be calcultated when the element 'VL_0000000_D' is included in the selected area... So if element 'VL_0000000' is in the same dimension as 'VL_0000000_D', the condition in the rule is useless, because the rule will never fire for element 'VL_0000000'.
In general, you can use !dimname @= 'SomeElement' to check whether the current member in a dimension 'dimname' matches the element 'SomeElement'.

Michel
Post Reply