Identify Dimension elements not Used

Post Reply
CiskoWalt
Posts: 46
Joined: Thu Oct 16, 2008 4:02 pm

Identify Dimension elements not Used

Post by CiskoWalt »

Hello,

Is there an easy way to identify the elements in a dimesninon that are not used (no data in the cubes) ?
Some of our dimensions are shared by more than one cube.

A few years ago our chart of accounts was changed and data was migrated from say entity XXXX to new entity YYY. Some of the old entities were not mapped to new entities so it is possible that some of the old XXXX entities have data.

Looking for a better solution than summing data by entiy for each cube and then manually identifying the entities that are not used.

Thanks,

W
User avatar
Steve Rowe
Site Admin
Posts: 2455
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: Identify Dimension elements not Used

Post by Steve Rowe »

I think that a manual approach is proabably easier.

It could be possible to do something with TI along the lines of
Create an attribute called Populated in the dimension concerned.
Create level 0 views of the cubes concerned (you might have to manage the size of these), maybe a view with C levels on everything else but level 0 on the dimension of interest.
Point a TI at the view created above, process the view and populate the attribute with a 1 if the element is encountered.

Hope thsi gives yous ome ideas.
Cheers,
Technical Director
www.infocat.co.uk
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: Identify Dimension elements not Used

Post by Steve Vincent »

or you could use Excel as well. Put the full list of elements down the side and write a DBRW to grab data from each cube its used in, using the top level consolidation for each fo the other dims in the cube. Then just sum across each account and then filter that to find any zero values across all cubes.
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
nhavis
Posts: 62
Joined: Mon Jan 05, 2009 12:47 am

Re: Identify Dimension elements not Used

Post by nhavis »

Instead of summing the elements and looking for 0 -

Use something like {=AND(A1:C1=0)} which will avoid the case when cells are negating each other eg. -2, 0 and 2 will sum to 0.
Alan Kirk
Site Admin
Posts: 6643
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: Identify Dimension elements not Used

Post by Alan Kirk »

nhavis wrote:Instead of summing the elements and looking for 0 -

Use something like {=AND(A1:C1=0)} which will avoid the case when cells are negating each other eg. -2, 0 and 2 will sum to 0.
I find the SumSq function useful for that purpose.
"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.
Post Reply