I currently have an issue where I have a sales cube where data needs to be split out into Management Centres and Costs centres in a P&L cube. To tackle this I have placed two attributes on each of the products, one for the Management Centre and one for the Cost Centre.
In the P&L my rule looks like the following. This correctly places the values into appropriate Management Centre and Cost Centre.
Code: Select all
['Sales','Input','UK GBP']=N:IF (ATTRS('Brand', !PL_Brand Hierarchy, 'ManCentre')@= !PL_Management_Centre,
IF(ATTRS('Brand', !PL_Brand Hierarchy, 'Cost Centre')@= !PL_Cost_Centre,
DB('SC Sales Summary',!PL_Brand Hierarchy,!Years,!Months,!Versions - P&L Analysis,'UK GBP','Sales'),
0),0);
Code: Select all
['UK GBP','Sales']=>DB('PL Product P&L','Sales',!PL_Brand Hierarchy,ATTRS('PL_Brand Hierarchy',!PL_Brand Hierarchy, 'ManCentre'),ATTRS('PL_Brand Hierarchy',!PL_Brand Hierarchy, 'Cost Centre),!Months,!Years,'Input',!Versions,'UK GBP');
In addition to this when surpress zeros is turned on the consolidation line does not disappear.
Any ideas? Thank you in advance.