Alternative to ConsolidateChildren
Posted: Tue Sep 20, 2011 11:25 pm
I have been advised not to use the ConsolidateChildren function (as it can drastically affect performance), so I am looking for an alternative. Here is the situation:
Dimensions in the cube: Year, Period, Location, Package, Product, Customer, Measures
Structure of the customer dimension:
Total Customers
Customer A (n)
Customer B (n)
Customer C (n)
etc.
One of the elements in the Measures dimension is a Unique Customer Count. For n-level customers, Unique Customer Count is either 1 or 0, based on whether or not the customer has units (another element in the Measures dimension). I would like ['Total Customers', 'Unique Customer Count'] to be the sum of the Unique Customer Counts for each n-level customer. Currently, it is following the rule that should only apply to n-level customers.
Many thanks in advance.
[Admin Note: Moved from Useful Code to the correct (Cognos TM1) Forum]
Dimensions in the cube: Year, Period, Location, Package, Product, Customer, Measures
Structure of the customer dimension:
Total Customers
Customer A (n)
Customer B (n)
Customer C (n)
etc.
One of the elements in the Measures dimension is a Unique Customer Count. For n-level customers, Unique Customer Count is either 1 or 0, based on whether or not the customer has units (another element in the Measures dimension). I would like ['Total Customers', 'Unique Customer Count'] to be the sum of the Unique Customer Counts for each n-level customer. Currently, it is following the rule that should only apply to n-level customers.
Many thanks in advance.
[Admin Note: Moved from Useful Code to the correct (Cognos TM1) Forum]