Hi guys,
I'm trying to perfect ratios on a basic P&L cube and do different things at different levels, and i'm having some trouble.
I'm calculating a simple ratio on a cube as follows;
['Gross Commission/Income']=['Commissions']\['Income'];
Where ['Gross Commission/Income'] is a ratio nominal in the dimension 'nominal', and Commissions & Income are value nominals in the same dimension.
I want to be able to use the above calculation for the 'Actual' and 'Budget' Ledger types in the dimension 'Version', but for 'ActvsBud', which is a consolidation of the other 2, I want the consolidation to work and do ['Actual']-['Budget'].
I'm sure this is as easy a query as they come, but it's stumping me. N: level/ C: level rules are swirling round my head, so is 'IF(ELLISANC)' but i can't fathom it.
Any help greatly appreciated
Cheers,
Simon
Ratio rules
-
- Posts: 12
- Joined: Thu Sep 13, 2012 1:56 pm
- OLAP Product: TM1
- Version: 9.5.2
- Excel Version: 2007
Ratio rules
Version - 9.5.2
O/S - Windows XP Professional 2002 SP3
Excel 2007
Beginner!
O/S - Windows XP Professional 2002 SP3
Excel 2007
Beginner!
-
- Posts: 12
- Joined: Thu Sep 13, 2012 1:56 pm
- OLAP Product: TM1
- Version: 9.5.2
- Excel Version: 2007
Re: Ratio rules
I should add, SKIPCHECK; is turned on and I'm not feeding anything currently (Although advice on the latter is welcome!)
Thanks,
Simon
Thanks,
Simon
Version - 9.5.2
O/S - Windows XP Professional 2002 SP3
Excel 2007
Beginner!
O/S - Windows XP Professional 2002 SP3
Excel 2007
Beginner!
-
- Regular Participant
- Posts: 164
- Joined: Tue May 04, 2010 10:49 am
- OLAP Product: Cognos TM1
- Version: 9.4.1 - 10.1
- Excel Version: 2003 and 2007
Re: Ratio rules
Are 'Actual' and 'Budget' leaf elements or consolidations? Is 'Gross Commission/Income' a leaf element or consolidation?SimonLAylett wrote:I'm calculating a simple ratio on a cube as follows;
['Gross Commission/Income']=['Commissions']\['Income'];
Where ['Gross Commission/Income'] is a ratio nominal in the dimension 'nominal', and Commissions & Income are value nominals in the same dimension.
I want to be able to use the above calculation for the 'Actual' and 'Budget' Ledger types in the dimension 'Version', but for 'ActvsBud', which is a consolidation of the other 2, I want the consolidation to work and do ['Actual']-['Budget'].
I'm sure this is as easy a query as they come, but it's stumping me. N: level/ C: level rules are swirling round my head, so is 'IF(ELLISANC)' but i can't fathom it.
If they're all leaf level, I think you want something like this:
Code: Select all
[{'Actual', 'Budget'}, 'Gross Commission/Income']= ['Commissions']\['Income'];
If 'Actual' and 'Budget' are consolidations you want the rule to apply to elements under them, then you might try something like this:
Code: Select all
['Gross Commission/Income']= If(ElisAnc('Version', 'Actual', !Version) = 1 % ElisAnc('Version', 'Budget', !Version) = 1,
['Commissions']\['Income'],
Continue);
- Steve Rowe
- Site Admin
- Posts: 2456
- Joined: Wed May 14, 2008 4:25 pm
- OLAP Product: TM1
- Version: TM1 v6,v7,v8,v9,v10,v11+PAW
- Excel Version: Nearly all of them
Re: Ratio rules
You might want to check rule order too, the first rule that applies to a cellwins.
[ 'ActvsBud' , 'Gross Commission/Income']=['Actual']-['Budget'];
['Gross Commission/Income']=['Commissions']\['Income'];
Should work
btw if your variance calc is as simple as stated and you don't have mess around with the sign because of the sign in the underlying data then you should be doing ActvsBud in a consolidation since it's much more efficent.
Cheers,
[ 'ActvsBud' , 'Gross Commission/Income']=['Actual']-['Budget'];
['Gross Commission/Income']=['Commissions']\['Income'];
Should work
btw if your variance calc is as simple as stated and you don't have mess around with the sign because of the sign in the underlying data then you should be doing ActvsBud in a consolidation since it's much more efficent.
Cheers,
Technical Director
www.infocat.co.uk
www.infocat.co.uk