Page 1 of 1

Rule Issue - Element Name from Alias

Posted: Mon Oct 12, 2020 2:00 pm
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

Re: Rule Issue - Element Name from Alias

Posted: Mon Oct 12, 2020 2:21 pm
by ascheevel
DIMIX takes 2 arguments: dimension, element.

Code: Select all

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