Create Process to sort out elements in decreasing order

Post Reply
bsjain
Posts: 6
Joined: Sun Feb 19, 2012 8:05 pm
OLAP Product: TM1
Version: 9.5.1
Excel Version: 2003

Create Process to sort out elements in decreasing order

Post by bsjain »

Hi,

We have a dimension such as
ProductA
ProductA.0112
ProductA.0212
...ProductA.1212
ProductB
ProductB.0112
ProductB.0212
...ProductB.1212

we want process in which we can sort out above hirearchy in the decreasing order dynamically, we can use MDX expression for the same but level is not fixed, so we can't use MDX expression filter by level.
so, we can see finally in dimension
ProductA
ProductA.1212
ProductA.1112
...ProductA.0112
ProductB
ProductB.1212
ProductB.1112
...ProductB.0112

Kindly suggest the process to solve this.
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: Create Process to sort out elements in decreasing order

Post by jim wood »

Post moved by Administrator.

Please keep all questions relating to TM1 in the main TM1 forum. The useful code, hints and tips sub forum is for people publishing help in advance. It is not for questions.
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
bsjain
Posts: 6
Joined: Sun Feb 19, 2012 8:05 pm
OLAP Product: TM1
Version: 9.5.1
Excel Version: 2003

Re: Create Process to sort out elements in decreasing order

Post by bsjain »

Hi All,
I am still waiting for a reply.
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: Create Process to sort out elements in decreasing order

Post by Alan Kirk »

bsjain wrote:I am still waiting for a reply.
I'm going to assume that's a "different native language" thing and wasn't intended to be an expression of impatience given that people here aren't compensated for their time and knowledge.

(I mention this only because there are some who may take a strident exception to a follow-up post expressed in those terms, so I thought it best to pre-emptively extinguish that particular spot fire before it actually flares.)

In relation to your question, have you looked at the TurboIntegrator function DimensionSortOrder? It can be found in the Reference Guide. Assuming that you update the dimension through TI you can add the sort order to the end of the updates to get the elements into the sequence that you want.
"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