Feeders cube to other cube
Posted: Tue Jul 28, 2015 12:28 pm
Dear forum members,
This might be a question that already is answered on this forum before, but I cannot seem to find the answer. For most of you this is also an easy question to answer as you have probably done this before, but I'm still quite the nembie on TM1, so I could use your help on this one.
I have a cube called Personnel, where people can give in the personnel members on their departement. this cube has the following dimensions:
- Year
- Department
- Type Worker (blue collar or white collar)
- Type Relation (internal or consultant)
- Version
- Personnel Measures (number of man days, cost per day, total cost (which is calculated by doing number of man days * cost per day), Project)
Users fill in the number of man days and the cost per day. The total cost is calculated. But users also fill in a Project by choosing a project from a picklist (which is filled by the project dimension)
Then I need the give the total cost through to another cube called Overview. This cube has the following dimensions:
- Year
- Department
- Version
- Source
- D_Project
- Overview Measures (cost)
As you can see there are a couple of dimension which are found in the Personnel, but not in the Overview cube. But there is a D_Project dimension in the Overview cube. Now I have to write a feeder which feeds the Overview taking into account that I transform the project the users chose from the picklist to a dimension.
I have taken a first attempt, so maybe you can point out the errors that I am making. On the Personnel cube I have the following rules/feeders:
['Total Type Worker','Total Type Relation','total cost']
=>
DB('Overview',!Year,!Department,!Version,'personnel source',DB('Personnel',!Year,!Department,!Type Worker,!Type Relation,!Version,'Project'),'cost');
I am not sure if this is correct. And then on the Overview cube I have made a rule/calculation like this:
['personnel source','cost']=N:IF(!D_Project @= DB('Personnel',!Year,!Department,!Type Worker,!Type Relation,!Version,'Project'),
DB('Personnel',!Year,!Department,'Total Type Worker','Total Type Relation',!Version,'total cost'),0);
But this does not seem to work. Maybe I am not writing he feeders correctly. Could you point out how you would do this? But take into account that I cannot change the layout of the cubes.
Thank you for your help. I hope I explained it a bit so you could understand, because I find it difficult to explain the problem.
This might be a question that already is answered on this forum before, but I cannot seem to find the answer. For most of you this is also an easy question to answer as you have probably done this before, but I'm still quite the nembie on TM1, so I could use your help on this one.
I have a cube called Personnel, where people can give in the personnel members on their departement. this cube has the following dimensions:
- Year
- Department
- Type Worker (blue collar or white collar)
- Type Relation (internal or consultant)
- Version
- Personnel Measures (number of man days, cost per day, total cost (which is calculated by doing number of man days * cost per day), Project)
Users fill in the number of man days and the cost per day. The total cost is calculated. But users also fill in a Project by choosing a project from a picklist (which is filled by the project dimension)
Then I need the give the total cost through to another cube called Overview. This cube has the following dimensions:
- Year
- Department
- Version
- Source
- D_Project
- Overview Measures (cost)
As you can see there are a couple of dimension which are found in the Personnel, but not in the Overview cube. But there is a D_Project dimension in the Overview cube. Now I have to write a feeder which feeds the Overview taking into account that I transform the project the users chose from the picklist to a dimension.
I have taken a first attempt, so maybe you can point out the errors that I am making. On the Personnel cube I have the following rules/feeders:
['Total Type Worker','Total Type Relation','total cost']
=>
DB('Overview',!Year,!Department,!Version,'personnel source',DB('Personnel',!Year,!Department,!Type Worker,!Type Relation,!Version,'Project'),'cost');
I am not sure if this is correct. And then on the Overview cube I have made a rule/calculation like this:
['personnel source','cost']=N:IF(!D_Project @= DB('Personnel',!Year,!Department,!Type Worker,!Type Relation,!Version,'Project'),
DB('Personnel',!Year,!Department,'Total Type Worker','Total Type Relation',!Version,'total cost'),0);
But this does not seem to work. Maybe I am not writing he feeders correctly. Could you point out how you would do this? But take into account that I cannot change the layout of the cubes.
Thank you for your help. I hope I explained it a bit so you could understand, because I find it difficult to explain the problem.