Rules for cubes with different dimensions
Posted: Fri Jan 21, 2011 6:44 am
Hi,
I have the following problem with creating rules for cubes with different dimensions:
I have one cube that uses Date dimension which is build up by days and the other one uses year and month (so no days in there).
Also I have a product dimension in one cube which is build up by sku's and the other one only has 10 categories, so high level.
Do I really have to specify for each month, and each category what goes in where?
['Actual','FY11','Jan','Cat1','Sales $'] =
DB(Product)','Actual','JAN-2011','Cat1','Sales');
['Actual','FY11','Feb','Cat1','Sales $'] =
DB(Product)','Actual','JAN-2011','Cat1','Sales');
Rest of year
AND
['Actual','FY11','Jan','Cat2','Sales $'] =
DB(Product)','Actual','JAN-2011','Cat2','Sales');
['Actual','FY11','Feb','Cat2','Sales $'] =
DB(Product)','Actual','JAN-2011','Cat2','Sales');
Rest of categories.
Surely there is an easier option that this because with 12 months and 10 categories I have 120 of these lines of code, and that is for only one measure: sales. I have cost of sales, margin and many others as well.
I need some kind of loop function or is there an other way?
Any help is appreciated.
Cheers
I have the following problem with creating rules for cubes with different dimensions:
I have one cube that uses Date dimension which is build up by days and the other one uses year and month (so no days in there).
Also I have a product dimension in one cube which is build up by sku's and the other one only has 10 categories, so high level.
Do I really have to specify for each month, and each category what goes in where?
['Actual','FY11','Jan','Cat1','Sales $'] =
DB(Product)','Actual','JAN-2011','Cat1','Sales');
['Actual','FY11','Feb','Cat1','Sales $'] =
DB(Product)','Actual','JAN-2011','Cat1','Sales');
Rest of year
AND
['Actual','FY11','Jan','Cat2','Sales $'] =
DB(Product)','Actual','JAN-2011','Cat2','Sales');
['Actual','FY11','Feb','Cat2','Sales $'] =
DB(Product)','Actual','JAN-2011','Cat2','Sales');
Rest of categories.
Surely there is an easier option that this because with 12 months and 10 categories I have 120 of these lines of code, and that is for only one measure: sales. I have cost of sales, margin and many others as well.
I need some kind of loop function or is there an other way?
Any help is appreciated.
Cheers