I've been experiencing issues with aliases in rules right hand side area. Regardless of how bad the idea of having aliases in rules is, I'd like to understand why it stopped working (I saw this apporoach in multiple models and it worked). The fact aliases work in left hand side - area definition brackets, bothers me even more.
So I have simple cube "Cube" with 2 dimensions:
- "Dimension 1" - elements there: numerics under one consolidation. Dimension 1 has aliases - and they are different than original elements names.
- "Measures" - elements there: few strings, few numerics. Measures doesn't have aliases.
I wanted to write a rule for one of the elements of the "Dimension 1" called "999" with alias value "999 - Account". There are my attempts:
1.
after that I had "text" on all my string measures as expected[]=S: IF(!Dimension 1@='999', 'text', STET);
2.
after changing RHS of the rule to alias, rules stopped working[]=S: IF(!Dimension 1@='999 - Account', 'text', STET);
3.
worked the same like first rule['999']=S: 'text';
3.
worked the same like first and third rule['999 - Account']=S: 'text';
I checked it also on }CubeSecurity cube of that cube, where there's also dimension }Groups with aliases. Unfortunately the same issue no matter what dimension I write rules about. LHS works, RHS doesn't. I just feel like the answer to my question is quite easy, but as for now I have no idea what's happening.