Min, Max function in TM1

Post Reply
blusky_1010
Posts: 5
Joined: Tue Mar 19, 2013 2:37 am
OLAP Product: IBM Cognos TM1
Version: 10.1.1
Excel Version: 2007

Min, Max function in TM1

Post by blusky_1010 »

Hi all!

i have a trouble when i write the rules from Excel in TM1
i have 5 year like the Dimension below:
https://plus.google.com/u/0/photos/1114 ... oOkp5vOsgE

and i want get Min in the row, if i used fomula Min(a,b,c) it have too much cell (a,b,c .....) i need list
fomular in Excel: D18=MIN(D17:$BV$17)

please hepl,

thanks alot!
lotsaram
MVP
Posts: 3704
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Min, Max function in TM1

Post by lotsaram »

blusky_1010 wrote:Hi all!

i have a trouble when i write the rules from Excel in TM1
i have 5 year like the Dimension below:
https://plus.google.com/u/0/photos/1114 ... oOkp5vOsgE

and i want get Min in the row, if i used fomula Min(a,b,c) it have too much cell (a,b,c .....) i need list
fomular in Excel: D18=MIN(D17:$BV$17)

please hepl,

thanks alot!
Has having a (thorough) read through of the developer guide and reference manual occurred to you? It would be highly recommended.
whitej_d
Community Contributor
Posts: 103
Joined: Mon Sep 05, 2011 11:04 pm
OLAP Product: TM1
Version: 10.2
Excel Version: 2010

Re: Min, Max function in TM1

Post by whitej_d »

There's no easy way of getting a minimum/maximum from a range of cells in TM1. You can only get the minimum/maximum of 2 numbers.

If you want to get a min/max of a range of numbers, you're probably better of using a TI to pass through the cells and using if statements to extract the minimum.

It is possible to do with rules but you'd have to have a cube with a duplicate dimension and use an if statement to compare every number with every other number, which is pretty messy and would be pretty slow if it was anything but a very small dimension.
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: Min, Max function in TM1

Post by Duncan P »

I notice that OP is on v10. In this case the ConsolidatedMin and ConsolidatedMax functions are available. These have not always been readily to hand in the documentation so he can be forgiven for not finding them. They are described here and discussed here. They are valid both in rules and TI as mentioned in the referenced thread.
luisda
Posts: 1
Joined: Thu Jan 31, 2013 5:52 pm
OLAP Product: TM1
Version: 10.1.1
Excel Version: 2010

Re: Min, Max function in TM1

Post by luisda »

whitej_d wrote:There's no easy way of getting a minimum/maximum from a range of cells in TM1. You can only get the minimum/maximum of 2 numbers.

If you want to get a min/max of a range of numbers, you're probably better of using a TI to pass through the cells and using if statements to extract the minimum.
Any example to do this?

Thanks,
BariAbdul
Regular Participant
Posts: 424
Joined: Sat Mar 10, 2012 1:03 pm
OLAP Product: IBM TM1, Planning Analytics, P
Version: PAW 2.0.8
Excel Version: 2019

Re: Min, Max function in TM1

Post by BariAbdul »

Hi luisda ,Any reason for not trying ConsolidatedMin and ConsolidatedMax functions as suggested by Duncan P? Thanks
"You Never Fail Until You Stop Trying......"
Post Reply