Writing rule in sparsed cube
Posted: Mon Mar 25, 2013 10:20 am
Hello, community.
As far as i know it's not possible to put ATRRS or DB in left part of any rule.
Let the test cube have just two not small dimensions - 'Company Name' and 'City'. Let in one city there are just only few companies, so we can build matrix of cities/companies (let it is named 'The Matrix' and it is sparsely filled by number '1').
If we need to calculate something for company we have to write partitioning IF rule:
Is there any other way write the rule?
Upd. one other way is to multiply by DB('The Matrix',...) that is 1 or 0
As far as i know it's not possible to put ATRRS or DB in left part of any rule.
Code: Select all
['Company Name 001', DB(<...>,!Company Name, 'City')]=N:...
If we need to calculate something for company we have to write partitioning IF rule:
Code: Select all
[]=N: IF(DB('The Matrix', !COmpany Name, !City)=1,<...the rule...>,0);
Upd. one other way is to multiply by DB('The Matrix',...) that is 1 or 0