TM1 Rules Scenario Using Attributes
Posted: Mon Feb 29, 2016 12:24 pm
Hi - I have a requirement to rebuild a cube 'Commercial' with one additional dimension.
This cube 'Commercial' is currently using rules with DB functions to pull data into it from another cube 'zz Accident Year'.
In the 'Commercial' cube, one dimension ('zz BDE') held virtually identical data (just structured in a different hierarchy) to the ''zz Broker' dimension in the 'zz Accident Year' cube, so I used attributes to look up and match 'Agency no' between the two, as the example below shows, as agency numbers were the same between both.
Now the requirement is to add that dimension to the 'Commercial' cube which also exists in 'zz Accident Year', 'zz Broker'
This would ordinarily I suppose negate the need for using attributes to look up the data between 'zz BDE' dimension and 'zz Broker' dimension. But, I need to keep the 'zz BDE' dimension in the 'Commercial' cube as well, so I still need to use this attribute, I think.
How do I then tell TM1 that I want 'zz Broker' in the 'Commercial' cube to equal 'zz Broker' in the 'zz Accident Year' cube in the rule above while also keeping the attribute lookup?
Many thanks in advance for your advice.
This cube 'Commercial' is currently using rules with DB functions to pull data into it from another cube 'zz Accident Year'.
In the 'Commercial' cube, one dimension ('zz BDE') held virtually identical data (just structured in a different hierarchy) to the ''zz Broker' dimension in the 'zz Accident Year' cube, so I used attributes to look up and match 'Agency no' between the two, as the example below shows, as agency numbers were the same between both.
Code: Select all
['zz Underwriting Year':'Unanalysed','Net Earned Premium','zz Tenure':'Unspecified']=N:DB('zz Accident Year','Actual',!zz Heads of Damage,!zz Accident Period,!zz Class,attrs('zz BDE',!zz BDE,'Agency No'),!zz Policy Event Type,'All Cover Types',!zz Development Month,!zz Measures);
This would ordinarily I suppose negate the need for using attributes to look up the data between 'zz BDE' dimension and 'zz Broker' dimension. But, I need to keep the 'zz BDE' dimension in the 'Commercial' cube as well, so I still need to use this attribute, I think.
How do I then tell TM1 that I want 'zz Broker' in the 'Commercial' cube to equal 'zz Broker' in the 'zz Accident Year' cube in the rule above while also keeping the attribute lookup?
Many thanks in advance for your advice.