Rule Issue - Element Name from Alias

Post Reply
chewza
Posts: 101
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 » Mon Oct 12, 2020 2:00 pm

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: 175
Joined: Fri Feb 15, 2013 5:49 pm
OLAP Product: TM1
Version: PA 2.0.8
Excel Version: 2016
Location: Minneapolis, USA

Re: Rule Issue - Element Name from Alias

Post by ascheevel » Mon Oct 12, 2020 2:21 pm

DIMIX takes 2 arguments: dimension, element.

Code: Select all

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

Post Reply