Ruling values between dimension elements
Posted: Wed Oct 02, 2013 2:38 pm
Hi All,
I'm working on a CapEx model for my organization and I'm running into a little snafu with the rules that I'm hoping to get some guidance on. Essentially, I'm wondering if it's possible to rule values from one intersection in a cube into another intersection using an attribute of one of the elements to determine where the value would be ruled to. First a little bit of background info on the model:
All relevant CapEx calculations take place in the CapEx cube.
The Dimensions of the cube are:
1) Versions
2) Companies
3) Cost Centers
4) Time Months
5) Projects
6) CapEx Measures
The Projects dimension has two attributes relevant to this question: 1) Mgt CC & 2) Depr CC.
~The Mgt CC is the managing cost center to which all cost is assigned
~The Depr CC is the depreciating cost center to which depreciation is to be recorded/reported.
The Cost Centers dimension has a Company attribute which shows to which company the Cost Center belongs
Currently I have a working depreciation rule that is calculating depreciation at the Mgt CC (since all cost is stored there)
I also have a TI process that is copying the depreciation from CapEx Measure "Depreciation" to the "Ruled Depr" Measure.
Ultimately what I'm hoping for is either the ability to move the values from the source intersection:
DB('CapEx', 'Forecast', !Companies, attrs('Projects', !Projects, 'Mgt CC'), !Time Months, !Projects, 'Depreciation')
to the destination intersection:
DB('CapEx', 'Forecast', attrs('Cost Centers', !Cost Centers, 'Company'), attrs('Projects', !Projects, 'Depr CC'), !Time Months, !Projects, 'Ruled Depr')
Currently, I've tried the following rule and both of the following feeders; and while these do copy the values from the source intersection to the destination intersection, they also copy the source values into the same intersection as the source but in the Ruled Depr measure:
Rule:
['Ruled Depr', 'Forecast']= N:
DB('CapEx', 'Forecast', 'All Companies', 'All Cost Centers', !Time Months, !Projects, 'Depreciation');
Feeder attempt 1:
['Depreciation', 'Forecast']=>DB('CapEx', 'Forecast', attrs('Cost Centers', attrs('Projects', !Projects, 'Depr CC'), 'Company'), attrs('Projects', !Projects, 'Depr CC'), !Time Months, !Projects, 'Ruled Depr');
Feeder attempt 2:
['Depreciation', 'Forecast']=>DB(IF(!Cost Centers @= attrs('Projects', !Projects, 'Depr CC'), 'CapEx', '')
,'Forecast', attrs('Cost Centers', attrs('Projects', !Projects, 'Depr CC'), 'Company'), attrs('Projects', !Projects, 'Depr CC'), !Time Months, !Projects, 'Ruled Depr');
Any help is greatly appreciated!
Thanks all!
I'm working on a CapEx model for my organization and I'm running into a little snafu with the rules that I'm hoping to get some guidance on. Essentially, I'm wondering if it's possible to rule values from one intersection in a cube into another intersection using an attribute of one of the elements to determine where the value would be ruled to. First a little bit of background info on the model:
All relevant CapEx calculations take place in the CapEx cube.
The Dimensions of the cube are:
1) Versions
2) Companies
3) Cost Centers
4) Time Months
5) Projects
6) CapEx Measures
The Projects dimension has two attributes relevant to this question: 1) Mgt CC & 2) Depr CC.
~The Mgt CC is the managing cost center to which all cost is assigned
~The Depr CC is the depreciating cost center to which depreciation is to be recorded/reported.
The Cost Centers dimension has a Company attribute which shows to which company the Cost Center belongs
Currently I have a working depreciation rule that is calculating depreciation at the Mgt CC (since all cost is stored there)
I also have a TI process that is copying the depreciation from CapEx Measure "Depreciation" to the "Ruled Depr" Measure.
Ultimately what I'm hoping for is either the ability to move the values from the source intersection:
DB('CapEx', 'Forecast', !Companies, attrs('Projects', !Projects, 'Mgt CC'), !Time Months, !Projects, 'Depreciation')
to the destination intersection:
DB('CapEx', 'Forecast', attrs('Cost Centers', !Cost Centers, 'Company'), attrs('Projects', !Projects, 'Depr CC'), !Time Months, !Projects, 'Ruled Depr')
Currently, I've tried the following rule and both of the following feeders; and while these do copy the values from the source intersection to the destination intersection, they also copy the source values into the same intersection as the source but in the Ruled Depr measure:
Rule:
['Ruled Depr', 'Forecast']= N:
DB('CapEx', 'Forecast', 'All Companies', 'All Cost Centers', !Time Months, !Projects, 'Depreciation');
Feeder attempt 1:
['Depreciation', 'Forecast']=>DB('CapEx', 'Forecast', attrs('Cost Centers', attrs('Projects', !Projects, 'Depr CC'), 'Company'), attrs('Projects', !Projects, 'Depr CC'), !Time Months, !Projects, 'Ruled Depr');
Feeder attempt 2:
['Depreciation', 'Forecast']=>DB(IF(!Cost Centers @= attrs('Projects', !Projects, 'Depr CC'), 'CapEx', '')
,'Forecast', attrs('Cost Centers', attrs('Projects', !Projects, 'Depr CC'), 'Company'), attrs('Projects', !Projects, 'Depr CC'), !Time Months, !Projects, 'Ruled Depr');
Any help is greatly appreciated!
Thanks all!