Hierarchy

Post Reply
samkp
Posts: 4
Joined: Mon Oct 06, 2014 2:33 pm
OLAP Product: Cognos TM1
Version: 10.2
Excel Version: 2010

Hierarchy

Post by samkp »

Cost Center Hierarchy to be as below

RegionName(Attrs of LeafLevel)->DistrictName(Attrs of LeafLevel)->Leaf Level CostCenters

For example , Please check the below screenshots... leaf elements have the RegionName and District Name Attr Names. if Elements have different Attribute names under Hierarchy , we need to consider the common attribute name which max elements have. in the below examplen it should be R01-MARTIN,ROBERTJ -> R01D01-UNASSIGNED->ALL LEAF ELEMENTS UNDER THAT.

Any help in logic is much appreciated.
Attachments
After Hierarchy it should look like this
After Hierarchy it should look like this
2.png (4.12 KiB) Viewed 6756 times
Before Hierarchy it looks like this
Before Hierarchy it looks like this
1.png (11.58 KiB) Viewed 6756 times
deepakjain2020
Regular Participant
Posts: 152
Joined: Sat May 25, 2013 10:32 am
OLAP Product: TM1
Version: 9.5.2; 10.2.2
Excel Version: 2007

Re: Hierarchy

Post by deepakjain2020 »

Hi Sam,

Are you looking for Hierarchy creation based on all elements listed.

RegionName(Attrs of LeafLevel)->DistrictName(Attrs of LeafLevel)->Leaf Level CostCenters
For example , Please check the below screenshots... leaf elements have the RegionName and District Name Attr Names. if Elements have different Attribute names under Hierarchy , we need to consider the common attribute name which max elements have. in the below examplen it should be R01-MARTIN,ROBERTJ -> R01D01-UNASSIGNED->ALL LEAF ELEMENTS UNDER THAT.
Or you need only the one which have max elements?

You need leaf level elements to be under the consolidated element "RegionName(Attrs of LeafLevel)->DistrictName(Attrs of LeafLevel)" separately or all under the one which have maximum elements?

Regards,
Deepak Jain
samkp
Posts: 4
Joined: Mon Oct 06, 2014 2:33 pm
OLAP Product: Cognos TM1
Version: 10.2
Excel Version: 2010

Re: Hierarchy

Post by samkp »

It is for max elements.
deepakjain2020
Regular Participant
Posts: 152
Joined: Sat May 25, 2013 10:32 am
OLAP Product: TM1
Version: 9.5.2; 10.2.2
Excel Version: 2007

Re: Hierarchy

Post by deepakjain2020 »

Now as you said you need Attributes to be as consolidated which are having the Maximum Number of same attributes.
One more thing now, you need only respective elements to be under that consolidated or all the elements which are existing in dimension?

Regards,
Deepak Jain
samkp
Posts: 4
Joined: Mon Oct 06, 2014 2:33 pm
OLAP Product: Cognos TM1
Version: 10.2
Excel Version: 2010

Re: Hierarchy

Post by samkp »

All the elements existing in the dimension
deepakjain2020
Regular Participant
Posts: 152
Joined: Sat May 25, 2013 10:32 am
OLAP Product: TM1
Version: 9.5.2; 10.2.2
Excel Version: 2007

Re: Hierarchy

Post by deepakjain2020 »

Hey Sam,

You can get the max count for combination of RegionName(Attrs of LeafLevel)->DistrictName(Attrs of LeafLevel) based on all the elements. To get that I would try using IF condition.
Store them in some dummy variables.

Next perform which of the combination is having a greater value. I am not sure how you are planning to showcase when there is a same value for two combinations.
Once you have your combination with greatest value insert it into your dimension and then go on adding your leaf level elements under that consolidated element.

I would have tried at my end and shared the code, but it can be done on weekend from my side.

Regards,
Deepak Jain
samkp
Posts: 4
Joined: Mon Oct 06, 2014 2:33 pm
OLAP Product: Cognos TM1
Version: 10.2
Excel Version: 2010

Re: Hierarchy

Post by samkp »

Thanks that would be greatful.
BariAbdul
Regular Participant
Posts: 424
Joined: Sat Mar 10, 2012 1:03 pm
OLAP Product: IBM TM1, Planning Analytics, P
Version: PAW 2.0.8
Excel Version: 2019

Re: Hierarchy

Post by BariAbdul »

Hi Deepak,Any updates Please.Thanks :)
"You Never Fail Until You Stop Trying......"
deepakjain2020
Regular Participant
Posts: 152
Joined: Sat May 25, 2013 10:32 am
OLAP Product: TM1
Version: 9.5.2; 10.2.2
Excel Version: 2007

Re: Hierarchy

Post by deepakjain2020 »

Hi Abdul,

I requested Sam for sample file, so that I would start up. but there was no response.

Anyway will create one sample based on screenshot shared on this weekend.

Regards,
Deepak Jain
Post Reply