Rule Issue - Element Name from Alias

Post Reply
chewza
Posts: 146
Joined: Tue Aug 17, 2010 11:51 am
OLAP Product: TM1
Version: 9.5
Excel Version: 7

Rule Issue - Element Name from Alias

Post by chewza »

Hi there

I am trying to get the element name from an alias.
The rule is in the attribute cube for my Calendar dimension:

['Next'] = s:
DimNm('Calendar',
DimIx(DB('}ElementAttributes_Calendar',!Calendar,'IdxNext'))
);

I get an error of "unexpected parenthases"
The dimension has an Idx Alias, and the "IdxNext" attribute gives the Idx of the next element.
I am trying to get the name of the next element based on the Idx alias.
Any idea why this is giving issues?

Many thx
Chris
ascheevel
Community Contributor
Posts: 286
Joined: Fri Feb 15, 2013 5:49 pm
OLAP Product: TM1
Version: PA 2.0.9.1
Excel Version: 365
Location: Minneapolis, USA

Re: Rule Issue - Element Name from Alias

Post by ascheevel »

DIMIX takes 2 arguments: dimension, element.

Code: Select all

['Next'] = s:
DimNm('Calendar',
DimIx('Calendar', DB('}ElementAttributes_Calendar',!Calendar,'IdxNext'))
);
Post Reply