allocating values from one cube to another cube.
Posted: Mon Oct 03, 2011 7:30 pm
Hi friends,
I have a cube named HR,
Having following dimensions.
Function,
Facility,
Scenario,
Serial No(1,2,3,4)
Department
Account Code,
Measures-Employee Name,Allocation %,Amount, Allocated Department, Allocated Account Code.
The design is some employees are working in different department however the budgeting for them happens in the same department and it gets allocated across different department as per the allocation % specified.
For EG Employee A belongs to IT Department, but he also works for Finance department hence the allocation should be 50% for IT and 50% for finance in the P & L cube.
Note:The budgeting for this employee would be done under the IT department only and it should automatically allocate it.
My problem is that once the user is done with entering the HR budgets, it should go and hit the P & L cube to its respective Account Code and respective Department.
Currently I am doing it using a nested while loop, however there is too much of code involved.
I am trying to export the cube as a text file and import it back to the P & L cube but whenever I try to export the cube the process terminates unexpectedly.
I am not sure if I am on the right track,Is there any simple way in which i can achieve this?
I have a cube named HR,
Having following dimensions.
Function,
Facility,
Scenario,
Serial No(1,2,3,4)
Department
Account Code,
Measures-Employee Name,Allocation %,Amount, Allocated Department, Allocated Account Code.
The design is some employees are working in different department however the budgeting for them happens in the same department and it gets allocated across different department as per the allocation % specified.
For EG Employee A belongs to IT Department, but he also works for Finance department hence the allocation should be 50% for IT and 50% for finance in the P & L cube.
Note:The budgeting for this employee would be done under the IT department only and it should automatically allocate it.
My problem is that once the user is done with entering the HR budgets, it should go and hit the P & L cube to its respective Account Code and respective Department.
Currently I am doing it using a nested while loop, however there is too much of code involved.
I am trying to export the cube as a text file and import it back to the P & L cube but whenever I try to export the cube the process terminates unexpectedly.
I am not sure if I am on the right track,Is there any simple way in which i can achieve this?