Sort-Function in TI

Post Reply
SADELMA
Posts: 6
Joined: Thu Nov 06, 2008 2:22 pm

Sort-Function in TI

Post by SADELMA »

Hi all,

is there a way to sort a subset inside of a TI-Process? I create a Subset in the process for example with values 1 - 3. The result is 3 - 2 - 1. I want the result in the order 1 - 2 - 3. How can i do that inside the TI-Process?

Thank you in advance!

Greetings
Marcus Scherer
Community Contributor
Posts: 126
Joined: Sun Jun 29, 2008 9:33 am
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2016
Location: Karlsruhe

Re: Sort-Function in TI

Post by Marcus Scherer »

Without knowing details and what your source is, you may force TI to loop through your source data set from the last row to first row instead of first to last. You may determine the number of rows in a first run and then create a backward loop where you create your subset.
User avatar
Steve Rowe
Site Admin
Posts: 2416
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: Sort-Function in TI

Post by Steve Rowe »

You could create the subset with MDX which would give you access to sorting functionality.

Alternatively you could process the subset a second time using the same code, which should reverse the order I think.
Technical Director
www.infocat.co.uk
Post Reply