Hi,
I have issues in sending data from 1 cube to another based on attributes.
To sum up, I have 2 cubes:
. Input Cube with "Productive days" per "site" / "month" and "version" (dimensions manually updated)
. Output Cube with the same above dimensions + a "cost center" dimension, the "site" dimension being an attribute of the cost center dimension.
I want to send these productive days to all the cost centers based on site.
To do so, I wrote the following TI rule, but I have the feeling I am missing the "cost center" element in the coding ...
As an example I tried using 1 single site, but I would rather write a "generic" formula to avoid having to copy it for each site...
['Staff Productive Days'] =
N: IF(ATTRS('2_Cost_Centers', !2_Cost_Centers, 'Site')@='MADRID',
DB('Input Cube', 'MADRID', !3_Month_Year, !4_Version_Final, 'Staff Productive Days', 'Value'),
CONTINUE);
Can you please help me sorting this out ?
Thanks in advance,
Pierre.
Send data based on 2 dimensions
-
- Posts: 78
- Joined: Tue Mar 18, 2014 8:02 am
- OLAP Product: TM1, Cognos Express
- Version: 10.2.2
- Excel Version: 2013
Re: Send data based on 2 dimensions
Try this:
This way you take input hours from the site as stated in the attributes of your cost center.
Code: Select all
['Staff Productive Days'] = N: DB('Input Cube',ATTRS('2_Cost_Centers', !2_Cost_Centers, 'Site'), !3_Month_Year, !4_Version_Final, 'Staff Productive Days', 'Value');
-
- Posts: 22
- Joined: Tue Feb 25, 2014 12:37 pm
- OLAP Product: IBM Cognos TM1
- Version: 10.2
- Excel Version: Excel 2013
Re: Send data based on 2 dimensions
Thanks for your help, it worked.