Dimension order for a cube.

Post Reply
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

Dimension order for a cube.

Post by deepakjain2020 »

Hi All,

We are having a cube with 7 dimensions.

Currently the order of dimesions

1. DIM1 having 249 elements
2. DIM2 having 419 elements
3. DIM3 having 898 elements
4. DIM4 having 2 elements
5. DIM5 having 23 elements
6. DIM6 having 66 elements
7. DIM7 is a measure dimension having 4 elements.

After going through best practices @ http://www.bedrocktm1.org/resources/fil ... Design.pdf
I thought of having the order as mentioned below.

1. DIM1 having 2 elements
2. DIM2 having 23 elements
3. DIM3 having 66 elements
4. DIM4 having 249 elements
5. DIM5 having 419 elements
6. DIM6 having 898 elements
7. DIM7 is a measure dimension having 4 elements.

I will like to know what would be the best way to order dimensions for better performance.
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: Dimension order for a cube.

Post by Alan Kirk »

deepakjain2020 wrote: I will like to know what would be the best way to order dimensions for better performance.
There's no one right answer for that; in fact in the FAQ there's a link to a thread which discusses this.

The issues are:
(a) Just because you have n elements now, doesn't mean that you will in the future and;
(b) Sparsity is likely to change over time as more data is added. What is dense when you start may become sparse over time. This would be especially true of something like a Product dimension, as new ones come in and old ones are phased out. Suggest that you take a look at the thread that's linked to in the FAQ to see the discussion involved. Ultimately all you can do is make your best estimate. You can of course reorder the cube later if it turns out to be too much of an issue but these days it's more important to build for speed over just size.
"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.
User avatar
jim wood
Site Admin
Posts: 3961
Joined: Wed May 14, 2008 1:51 pm
OLAP Product: TM1
Version: PA 2.0.7
Excel Version: Office 365
Location: 37 East 18th Street New York
Contact:

Re: Dimension order for a cube.

Post by jim wood »

To your point Alan, if you're using the cube optimizer (darn US spell checker) the original cube order has less of baring on things.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
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: Dimension order for a cube.

Post by deepakjain2020 »

Yep, your suggestions in FAQ are helpful.

When we reorder dimensions, we will have to make changes to rules already written, is that right?

Is there anyway to make changes automatically?

Regards,
Deepak Jain
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: Dimension order for a cube.

Post by Alan Kirk »

deepakjain2020 wrote:Yep, your suggestions in FAQ are helpful.

When we reorder dimensions, we will have to make changes to rules already written, is that right?

Is there anyway to make changes automatically?
No, the rules syntax works off the original order, as do worksheet formulas and the like. The rearrangement for all intents and purposes only happens internally. However the biggest gotcha is that in some versions dimension reordering can screw with dynamically created view data sources in TIs. Steve Vincent provides good coverage of that in this thread.
"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.
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: Dimension order for a cube.

Post by deepakjain2020 »

Thanks Alan :)
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: Dimension order for a cube.

Post by Duncan P »

Also for some reason the BI studios show the reordered dimensions.
Post Reply