Data Transfer based on Lookup cube and Attribute Value
Posted: Wed Nov 04, 2009 11:03 pm
I am trying to transfer the labor cost from a labor cost cube to summary cube. In the labor cost cube, the cost is by employee. Each employee belongs to an Organization and each Organization has one G&A pool and one Overhead pool. In the summary cube, I want to group the labor cost by G&A pool and Overhead pool. Here are the information for the cubes and dimensions.
1. Labor Cost – has 4 dimensions: Employees, Months, Projects and Measure. Employees dimension has an attribute Org.
2. Org to Pool – has 2 dimensions: Org and Pool Types. Pool Types has two string elements – G&A and Overhead. This cube lists the G&A and OH pool numbers for each org.
3. Summary – has 5 dimensions: G&A_Pools, Overhead Pools, Projects, Months and Measure.
I tried to write a rule in the summary cube like this without success:
Can anyone help? Thank you!
1. Labor Cost – has 4 dimensions: Employees, Months, Projects and Measure. Employees dimension has an attribute Org.
2. Org to Pool – has 2 dimensions: Org and Pool Types. Pool Types has two string elements – G&A and Overhead. This cube lists the G&A and OH pool numbers for each org.
3. Summary – has 5 dimensions: G&A_Pools, Overhead Pools, Projects, Months and Measure.
I tried to write a rule in the summary cube like this without success:
Code: Select all
['Base']=N:DB('Labor Cost',(DB('Org to Pool',attrs('Employees',!Employees,'Org'),'G&A')),(DB('Org to Pool',attrs('Employees',!Employees,'Org'),'Overhead')),!Months,!Projects,'Labor Cost');