Stop View Changing Dimension Order when adding a Subset
Posted: Thu Jan 07, 2010 4:13 pm
Help
I was trying to write some generalised TI code using views to load a cube when I realised that when you added a subset to the input view you changed the order in which the dimensions presented themselves in the TI code.
If you start with subset 'All' then the dimensions are in the order of the source cube. Say the dimensions are
A,B,C,D,E
If you assign a subset to C then it goes to the back of queue
A,B,D,E,C
If you then assign a subset to A then it goes to the back of queue and so on.
B,D,E,C,A
The problem occurs when you read your datasource into variables and it completely rejigs what is in each variable and you have to rename the variables or remap depending on your approach.
Is there any way to stop View Changing Dimension Order when adding a Subset?
Is there a sane reason why TI chooses to behave like this?
Regards
John
I was trying to write some generalised TI code using views to load a cube when I realised that when you added a subset to the input view you changed the order in which the dimensions presented themselves in the TI code.
If you start with subset 'All' then the dimensions are in the order of the source cube. Say the dimensions are
A,B,C,D,E
If you assign a subset to C then it goes to the back of queue
A,B,D,E,C
If you then assign a subset to A then it goes to the back of queue and so on.
B,D,E,C,A
The problem occurs when you read your datasource into variables and it completely rejigs what is in each variable and you have to rename the variables or remap depending on your approach.
Is there any way to stop View Changing Dimension Order when adding a Subset?
Is there a sane reason why TI chooses to behave like this?
Regards
John