Calculating hierarchy - custom weights

Post Reply
kudzis
Posts: 42
Joined: Wed Nov 10, 2010 12:35 pm
OLAP Product: Cognos 8 BI
Version: 9.5.1
Excel Version: Excel 2007

Calculating hierarchy - custom weights

Post by kudzis »

Hello,

I have a time dimension, it is used in multiple cubes:
Image

For most of the cubes (except one) I need all weights to be 1. For one specific cube, for some months, I need weights to to be 0; that is, specific months should not be included in hierarchy aggregation (in my case, values in March, April, May, October and December should be ignored in quarters and year aggregations). These specific weights are stored in dimension attribute "PSsvoris".

Is it possible to write a general rule(s) to do aggregation on this attribute "PSsvoris"?
User avatar
qml
MVP
Posts: 1098
Joined: Mon Feb 01, 2010 1:01 pm
OLAP Product: TM1 / Planning Analytics
Version: 2.0.9 and all previous
Excel Version: 2007 - 2016
Location: London, UK, Europe

Re: Calculating hierarchy - custom weights

Post by qml »

It's best to avoid rule-based aggregation as hierarchy-based consolidation is a lot faster.
You would be better off creating an alternative hierarchy in your dimension designed specifically for that one cube's roll-up method. Alternatively, you can use a different time dimension.
If you still want to use rules for consolidation and want to base these rules on attributes, then yes, this is possible.
Kamil Arendt
lotsaram
MVP
Posts: 3706
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Calculating hierarchy - custom weights

Post by lotsaram »

In this instance I think you would be best served by creating a separate time dimension for the specific cube in question.
kudzis
Posts: 42
Joined: Wed Nov 10, 2010 12:35 pm
OLAP Product: Cognos 8 BI
Version: 9.5.1
Excel Version: Excel 2007

Re: Calculating hierarchy - custom weights

Post by kudzis »

lotsaram wrote:In this instance I think you would be best served by creating a separate time dimension for the specific cube in question.
Is there a way to "swap" dimensions in cube? I have dimension "Time" in my cube and I've created "Time2", is there a way to change the dimension without recreating the cube?
User avatar
Steve Vincent
Site Admin
Posts: 1054
Joined: Mon May 12, 2008 8:33 am
OLAP Product: TM1
Version: 10.2.2 FP1
Excel Version: 2010
Location: UK

Re: Calculating hierarchy - custom weights

Post by Steve Vincent »

Nope :cry:
If this were a dictatorship, it would be a heck of a lot easier, just so long as I'm the dictator.
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
lotsaram
MVP
Posts: 3706
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Calculating hierarchy - custom weights

Post by lotsaram »

Steve Vincent wrote:Nope :cry:
Not true. As long as you are comfortable with stopping the TM1 service and editing the affected cube file(s) directly in a hex editor then dimension names can be changed. Providing no mistakes in the number of characters in dimension names and as long as the new dimension matches the old dimension for all leaf elements where data is held then when the server is restarted no data will be lost and the cube will point to the new dimension(s).

How to do this is described here in this post http://www.tm1forum.com/viewtopic.php?p=22780

Note: what you can't ever do without creating a new cube is to add or subtract dimensions from a cube.

Warning: this is essentially back door hacking and could be described as an "advanced" technique not for beginners and certainly not for the faint hearted. Anyone attempting this should back up the data directory first (kinda goes without saying).

A TM1 development tool that could facilitate doing this "automatically" via a GUI would be extremely useful IMO. Hint, hint to those out there who are selling TM1 development tools, this would be a nice addition.
User avatar
Steve Vincent
Site Admin
Posts: 1054
Joined: Mon May 12, 2008 8:33 am
OLAP Product: TM1
Version: 10.2.2 FP1
Excel Version: 2010
Location: UK

Re: Calculating hierarchy - custom weights

Post by Steve Vincent »

lotsaram wrote:
Steve Vincent wrote:Nope :cry:
Not true.
I know, but in the world of doing things in production the last thing i'd suggest to do is hack around in hex editors. Unless you really know your stuff the chances of calamity are large, hence the reply ;)
If this were a dictatorship, it would be a heck of a lot easier, just so long as I'm the dictator.
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
kudzis
Posts: 42
Joined: Wed Nov 10, 2010 12:35 pm
OLAP Product: Cognos 8 BI
Version: 9.5.1
Excel Version: Excel 2007

Re: Calculating hierarchy - custom weights

Post by kudzis »

I've edited hex files and changed the dimension with no problems at all (at least, with no visible problems :) ). Thank you everyone.
Post Reply