Rule

Post Reply
daya007
Posts: 49
Joined: Fri May 28, 2010 4:47 am
OLAP Product: TM1
Version: 9.5.1
Excel Version: 2003
Location: IL, USA

Rule

Post by daya007 »

Hi

I have to get the highest index value element into left side of the rule dynamically. Please share ur idea on this.
I tried to do this but it returns error

Code: Select all

['(DIMNM('Date_History', DIMSIZ('Date_History')))']
Thanks
Daya
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: Rule

Post by Alan Kirk »

daya007 wrote: I have to get the highest index value element into left side of the rule dynamically. Please share ur idea on this.
I tried to do this but it returns error

Code: Select all

['(DIMNM('Date_History', DIMSIZ('Date_History')))']
For one thing you have quotes around the expression, which means that you aren't using either function but rather (DIMNM('Date_History', DIMSIZ('Date_History'))) as a literal string.

It might be better to put the full rule and the actual error that you're getting when asking questions like these.
"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.
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: Rule

Post by Alan Kirk »

Alan Kirk wrote:
daya007 wrote: I have to get the highest index value element into left side of the rule dynamically. Please share ur idea on this.
I tried to do this but it returns error

Code: Select all

['(DIMNM('Date_History', DIMSIZ('Date_History')))']
For one thing you have quotes around the expression, which means that you aren't using either function but rather (DIMNM('Date_History', DIMSIZ('Date_History'))) as a literal string.
Actually I take that back; the rules syntax doesn't / can't nest quotes so as far as the rules compiler is concerned you're using '(DIMNM(' as one literal string, , ', DIMSIZ(' as another literal string, ')))' as a third one, and TM1 will have no idea what the bits in between mean.
"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.
lotsaram
MVP
Posts: 3706
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Rule

Post by lotsaram »

daya007 wrote:

Code: Select all

['(DIMNM('Date_History', DIMSIZ('Date_History')))']
Also to add to Alan's comments, it would appear that you are trying to use a function within the square bracket (shorthand) notation. The square bracket notation can only accept literal strings as arguments. If you want to nest functions then you must use the full DB() notation on the right hand side of the rule. If you want to nest functions on the left hand side then you can't as the area statement on the left of a rule can only accept square bracket notation.
Post Reply