Natural Consolidation to calculate %

Post Reply
conray
Posts: 41
Joined: Thu Jul 07, 2011 7:50 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: Excel 2010

Natural Consolidation to calculate %

Post by conray »

Is it possible to use natural consolidation to calculate %, such as:
A amount / B amount = AB%

AB%
|_ A amount
|_ B amount
Server OS: Windows Server 2008 R2 (64-bit)
TM1: v9.5.2 FP1
MS Office: Microsoft Excel 2003, 2010
Alan Kirk
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: Natural Consolidation to calculate %

Post by Alan Kirk »

conray wrote:Is it possible to use natural consolidation to calculate %, such as:
A amount / B amount = AB%

AB%
|_ A amount
|_ B amount
Not in a consolidation; for that you use Rules.

Exception: If the percentage is a fixed amount (say 10%) rather than being stored in another element, you can use a weighting when you add A Amount to the consolidation AB%. If the amount is variable, though, Rules are required.
"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.
Christopher Kernahan
Community Contributor
Posts: 147
Joined: Mon Nov 29, 2010 6:30 pm
OLAP Product: Cognos TM1
Version: 10.1
Excel Version: Office 2010

Re: Natural Consolidation to calculate %

Post by Christopher Kernahan »

Hi conray,

You'll have to use Rule Calculations for that.
conray
Posts: 41
Joined: Thu Jul 07, 2011 7:50 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: Excel 2010

Re: Natural Consolidation to calculate %

Post by conray »

ok understood, thanks for the feedback.
Server OS: Windows Server 2008 R2 (64-bit)
TM1: v9.5.2 FP1
MS Office: Microsoft Excel 2003, 2010
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: Natural Consolidation to calculate %

Post by Wim Gielis »

Alan Kirk wrote:Exception: If the percentage is a fixed amount (say 10%) rather than being stored in another element, you can use a weighting when you add A Amount to the consolidation AB%. If the amount is variable, though, Rules are required.
This trick can be used to have numeric values expressed in thousands (or millions):
make a consolidation out of the original value, with weight 0.001 (or 0,000001).
Apply numberformatting and you're done. It saves us from writing a lot of feeders and
therefore, the TM1 model is potentially a lot smaller and efficient.
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
lotsaram
MVP
Posts: 3704
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Natural Consolidation to calculate %

Post by lotsaram »

Wim Gielis wrote:This trick can be used to have numeric values expressed in thousands (or millions):
make a consolidation out of the original value, with weight 0.001 (or 0,000001).
Apply numberformatting and you're done. It saves us from writing a lot of feeders and
therefore, the TM1 model is potentially a lot smaller and efficient.
If you have a separate "scale" dimension in the model using exactly this technique that you add to all cubes as required then this is an even better trick. ;)
conray
Posts: 41
Joined: Thu Jul 07, 2011 7:50 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: Excel 2010

Re: Natural Consolidation to calculate %

Post by conray »

i am lost :?
Server OS: Windows Server 2008 R2 (64-bit)
TM1: v9.5.2 FP1
MS Office: Microsoft Excel 2003, 2010
Alan Kirk
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: Natural Consolidation to calculate %

Post by Alan Kirk »

conray wrote:i am lost :?
You're on Earth, third planet of a yellow star commonly referred to as The Sun which is located in one of the more unfashionable backwaters of the Alpha quadrant of the Milky Way galaxy.

Or if that doesn't answer your question...

Are you referring to weightings in consolidations?

If so, what we're talking about is this. Suppose that you have 5 N level elements in a consolidation, named A to E. By default these have a weighting of 1, meaning that the consolidation's value will be A + B + C + D + E, agreed?

However the weighting doesn't have to be 1; it can be any value. So suppose that you set the weighting for each of them to 0.001. The consolidation's value will then be (0.001 * A) + (0.001 * B) + (0.001 * C) + (0.001 * D) + (0.001 * E).

So supposing that A, B, C, D and E were in millions, your consolidation is now reporting the value rounded to thousands, without having to write a rule to do it or relying on rules functions which are less efficient than consolidations.
"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.
Duncan P
MVP
Posts: 600
Joined: Wed Aug 17, 2011 1:19 pm
OLAP Product: TM1
Version: 9.5.2 10.1 10.2
Excel Version: 2003 2007
Location: York, UK

Re: Natural Consolidation to calculate %

Post by Duncan P »

Looking at OP's original question I would be lost too if I were OP. He (?) asked about division and we got a (nonetheless interesting) discussion of scaling.

Basically natural consolidation adds. OP wants to divide. The only way for OP to do this with natural consolidations is to add the logarithms of the numbers (with a weight of -1 on the second) and then antilog. This would require a rule to do the log and antilog and is also much complicated by edge conditions (log(0) is -infinity) so why not just divide anyway.

BTW I like the way lotsaram said
lotsaram wrote:that you add to all cubes as required
You must have been thinking of another piece of software - or are you a closet Performance Modeler user :o ?
Alan Kirk
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: Natural Consolidation to calculate %

Post by Alan Kirk »

Duncan P wrote:Looking at OP's original question I would be lost too if I were OP. He (?) asked about division and we got a (nonetheless interesting) discussion of scaling.

Basically natural consolidation adds. OP wants to divide.
What does a weighting of 0.001 do?

Or, since we're talking percentages (or were in the original post), what does a weighting of 0.01 do?

Hence my original "Exception" qualification
I wrote:Exception: If the percentage is a fixed amount (say 10%) rather than being stored in another element, you can use a weighting
"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.
conray
Posts: 41
Joined: Thu Jul 07, 2011 7:50 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: Excel 2010

Re: Natural Consolidation to calculate %

Post by conray »

okay, so this is what i understood:
1. Alan is trying to explain, that we can round values using weightings instead of applying rounding method directly in rules.
2. There is no direct way to use natural consolidation to do a division.
Server OS: Windows Server 2008 R2 (64-bit)
TM1: v9.5.2 FP1
MS Office: Microsoft Excel 2003, 2010
Post Reply