Consolidated Rules
Posted: Tue Mar 22, 2011 6:46 pm
Hi everyone. Full transparency, I am an FP&A guy with limited rule/feeder writing experience.
I am trying to write a rule to calculate % achievement of plan (and growth over prior year). Simple calculation (Actual \ Budget). I have the rule working fine for N level data, but figures are consolidating when I look at Total Company. How can I write the rule such that the consolidated values are not the sum of the children but rather rule generated calculations? I tried changing the N: to C: but no luck. Thought I would throw it out to the smart folks before I spin my wheels for hours.
Thanks!
SkipCheck;
[VersionMgmt:'Actual vs SalesPlan %']=N:
## only do the calculation for current budget period
If(Attrs('TimeMgmt', !TimeMgmt, 'BudFcstVar')@='Y',
([VersionMgmt:'Actual']\[VersionMgmt:'SalesPlan'])
,stet);
Feeders;
[VersionMgmt:'Actual']=>[VersionMgmt:'Actual vs SalesPlan %'];
[VersionMgmt:'SalesPlan']=>[VersionMgmt:'Actual vs SalesPlan %'];
I am trying to write a rule to calculate % achievement of plan (and growth over prior year). Simple calculation (Actual \ Budget). I have the rule working fine for N level data, but figures are consolidating when I look at Total Company. How can I write the rule such that the consolidated values are not the sum of the children but rather rule generated calculations? I tried changing the N: to C: but no luck. Thought I would throw it out to the smart folks before I spin my wheels for hours.
Thanks!
SkipCheck;
[VersionMgmt:'Actual vs SalesPlan %']=N:
## only do the calculation for current budget period
If(Attrs('TimeMgmt', !TimeMgmt, 'BudFcstVar')@='Y',
([VersionMgmt:'Actual']\[VersionMgmt:'SalesPlan'])
,stet);
Feeders;
[VersionMgmt:'Actual']=>[VersionMgmt:'Actual vs SalesPlan %'];
[VersionMgmt:'SalesPlan']=>[VersionMgmt:'Actual vs SalesPlan %'];