Ordering dimension names in rules
Posted: Mon Jun 25, 2012 12:35 pm
Hi there,
I am relatively new to TM1, have been developing a model for a few weeks now and learning on the job.
I am confused with the ordering of dimensions in rules and just need a quick explanation please?
I inherited a model which (among others) included the following 2 cubes and rule :-
Cube1 : Earnings (source cube for this rule)
Dimensions:
Year and Month
Earnings Year and Month
Products
Measures
Version
Cube2 : Revenue (destination cube for this rule)
Dimensions:
Year and Month
Products
Measures
Version
The key rule in the Revenue cube is as follows :-
['Earned Premium']=N:DB('Earnings', 'All Policy Months', !year and month, !Products, 'Earned Premium', !Version);
This worked fine. However when I rebuilt the two cubes myself, I unintentionally changed the order of the Earnings cube dimensions to :-
Earnings Year and Month
Products
Measures
Version
Year and Month
... and this way round the rule no longer calculated (presented zeroes). I realised my ordering error and used "Re-order dimensions" to fix it, but this had no effect on the rule. In the end I had to delete the cube and rebuild it, and re enter my data.
Can the initial order not be changed once a cube is created, and is this fundamental to the rules as I thought it was driven by the name, not the order?
Thanks
I am relatively new to TM1, have been developing a model for a few weeks now and learning on the job.
I am confused with the ordering of dimensions in rules and just need a quick explanation please?
I inherited a model which (among others) included the following 2 cubes and rule :-
Cube1 : Earnings (source cube for this rule)
Dimensions:
Year and Month
Earnings Year and Month
Products
Measures
Version
Cube2 : Revenue (destination cube for this rule)
Dimensions:
Year and Month
Products
Measures
Version
The key rule in the Revenue cube is as follows :-
['Earned Premium']=N:DB('Earnings', 'All Policy Months', !year and month, !Products, 'Earned Premium', !Version);
This worked fine. However when I rebuilt the two cubes myself, I unintentionally changed the order of the Earnings cube dimensions to :-
Earnings Year and Month
Products
Measures
Version
Year and Month
... and this way round the rule no longer calculated (presented zeroes). I realised my ordering error and used "Re-order dimensions" to fix it, but this had no effect on the rule. In the end I had to delete the cube and rebuild it, and re enter my data.
Can the initial order not be changed once a cube is created, and is this fundamental to the rules as I thought it was driven by the name, not the order?
Thanks