Feeders to calculate Totals
Posted: Tue Sep 30, 2008 8:27 pm
Attached is a screenshot in word of the feeder I'm trying to write such that the value at intersection
['total cust - prod', 'Quantity'] of 8334 is fed into the target cube at intersection ['Total Products', 'Total Cust'].
The Rule in the target cube is:
SKIPCHECK;
['Quantity']=N:
DB('Product Cust Hier', ATTRS('Customer2', !Customer2, 'CustNo') | ' - ' | ATTRS('Product Categories', !Product Categories, 'Prod_Cat'), 'quantity');
where I'm using an attribute together with the consolidation from the source cube of '1 - 1 - Beverages' or '2 - 1 - Beverages' to bring across totals. The first part of the string here, '1' refers to the customer, where the latter, '1 - Beverages' refers to the product and these are attributes in target cubes' dimensions, "Customer2" & "Product Categories" respectively.
Now, the rule works correctly at the lower leaf levels but I think my feeder statement is incorrect for it not to be populating the intersection ['Total Products', 'Total Cust'] in the target cube.
The feeder in the source cube is:
FEEDERS;
['Total Cust - Prod', 'Quantity']=>DB('ProdCust', subst(!cust - prod, 1, 1), subst(!cust - prod, 5, long(!cust - prod)), 'quantity');
The order of dimensions specified in the feeder and skipcheck statements are correct, rule compiles, however no totals are evaluating.
Help would be much appreciated.
['total cust - prod', 'Quantity'] of 8334 is fed into the target cube at intersection ['Total Products', 'Total Cust'].
The Rule in the target cube is:
SKIPCHECK;
['Quantity']=N:
DB('Product Cust Hier', ATTRS('Customer2', !Customer2, 'CustNo') | ' - ' | ATTRS('Product Categories', !Product Categories, 'Prod_Cat'), 'quantity');
where I'm using an attribute together with the consolidation from the source cube of '1 - 1 - Beverages' or '2 - 1 - Beverages' to bring across totals. The first part of the string here, '1' refers to the customer, where the latter, '1 - Beverages' refers to the product and these are attributes in target cubes' dimensions, "Customer2" & "Product Categories" respectively.
Now, the rule works correctly at the lower leaf levels but I think my feeder statement is incorrect for it not to be populating the intersection ['Total Products', 'Total Cust'] in the target cube.
The feeder in the source cube is:
FEEDERS;
['Total Cust - Prod', 'Quantity']=>DB('ProdCust', subst(!cust - prod, 1, 1), subst(!cust - prod, 5, long(!cust - prod)), 'quantity');
The order of dimensions specified in the feeder and skipcheck statements are correct, rule compiles, however no totals are evaluating.
Help would be much appreciated.