Numeric Attributes and Rules
Posted: Mon Jan 12, 2009 4:56 pm
I wanted to do a simple check on a dim i am rebuilding to count the number of parents each element had. I created a numeric attribute, wrote a rule and nothing happened. After much head scratching i used a string attribute with the same code (all be it using STR to convert result to a string) and it worked.
Confused, i created a dummy dim in the test server with a few string elements and a numeric attribute. The simple code below does not work, so why can i create numeric rules in a "normal" cube but not in an attributes one? When i have a simple requirement like ELPARN is it not a waste of resources to have to find the value then convert it to a string, rather than just use the number?
Confused, i created a dummy dim in the test server with a few string elements and a numeric attribute. The simple code below does not work, so why can i create numeric rules in a "normal" cube but not in an attributes one? When i have a simple requirement like ELPARN is it not a waste of resources to have to find the value then convert it to a string, rather than just use the number?
Code: Select all
['test'] = 999;