Using multidimensional Lookup cubes - possible?
Posted: Fri Oct 08, 2010 5:29 pm
I am a new TM1 developer and my background is an accountant, not a programmer.
I have been struggling with this problem and unable to find an answer in any of my searches or documentation.
Here is my problem:
The business rule to calculate Earning EOC in the Payroll Budget cube does not return a value.
Also, If I could get that working, I would like to create the GL Account measure in the Payroll Budget Cube to be a combination of Dept and Earning EOC:
[For Example Dept="17.71.1155000" and Earning EOC="3532111" then the GL Account using VBA string concatenation would be built by this VBA code :
{=Left(Dept,2) & "1" & Right(Dept,11) & "." & Earning EOC} = "171.71.1155000.3532111."
The pipe character is used for concatenation in TM1 rules from what I've read, but can you use string extraction/variables to create the GL account
measure as in my example here?
Below are the Cubes in the example (as well I've uploaded a screenshot of the TM1 screens here:
https://docs.google.com/leaf?id=0B4mA78 ... ist&num=50
Cube: Payroll Budget
Dimensions: Dept, Job Code, Earning
Measures: Hours, Base Rate, Dollars, Job Code EOC, Earning EOC, GL Account
Cube: Job Code Info
Dimensions: Job Code
Measures: Base Rate, Job Code EOC
Cube: Earnings Info
Dimensions: Earning, Earning EOC
Measures: Job Code EOC
Here are the business rules in the Payroll Budget cube:
['Base Rate' ] = DB('Job Code Info', !Job Code, 'Base Rate');
['Dollars' ] = ['Hours' ] * ['Base Rate' ] ;
['Job Code EOC' ] =DB('Job Code Info', !Job Code, 'Default EOC');
['Earning EOC' ] = DB('Earning Info', !Earning, DB('Payroll Budget', !Dept, !Job Code, !Earning, 'Job Code EOC'), 'Earning EOC');
If I use this below for the rule it works and returns "3132311" from the earnings cube for earning 0060 for example:
['Earning EOC' ] = DB('Earning Info', !Earning, '3111011', 'Earning EOC');
So using DB('Payroll Budget', !Dept, !Job Code, !Earning, 'Job Code EOC') to supply the Job Code EOC dimension for the Earning Info cube did not work.
I also tried replacing the above DB with this DB ('Job Code Info', !Job Code, 'Job Code EOC) which I thought should also work but it does not.
Am I doing something wrong or can you not use a lookup cube with more that one dimension? And the second part of my problem, can you use string
manipulation to combine dimension/measures to create a new measure GL Account in this example?
I thank you in advance for any help,
Please let me know if any other info is required.
Regards,
...Tom
I have been struggling with this problem and unable to find an answer in any of my searches or documentation.
Here is my problem:
The business rule to calculate Earning EOC in the Payroll Budget cube does not return a value.
Also, If I could get that working, I would like to create the GL Account measure in the Payroll Budget Cube to be a combination of Dept and Earning EOC:
[For Example Dept="17.71.1155000" and Earning EOC="3532111" then the GL Account using VBA string concatenation would be built by this VBA code :
{=Left(Dept,2) & "1" & Right(Dept,11) & "." & Earning EOC} = "171.71.1155000.3532111."
The pipe character is used for concatenation in TM1 rules from what I've read, but can you use string extraction/variables to create the GL account
measure as in my example here?
Below are the Cubes in the example (as well I've uploaded a screenshot of the TM1 screens here:
https://docs.google.com/leaf?id=0B4mA78 ... ist&num=50
Cube: Payroll Budget
Dimensions: Dept, Job Code, Earning
Measures: Hours, Base Rate, Dollars, Job Code EOC, Earning EOC, GL Account
Cube: Job Code Info
Dimensions: Job Code
Measures: Base Rate, Job Code EOC
Cube: Earnings Info
Dimensions: Earning, Earning EOC
Measures: Job Code EOC
Here are the business rules in the Payroll Budget cube:
['Base Rate' ] = DB('Job Code Info', !Job Code, 'Base Rate');
['Dollars' ] = ['Hours' ] * ['Base Rate' ] ;
['Job Code EOC' ] =DB('Job Code Info', !Job Code, 'Default EOC');
['Earning EOC' ] = DB('Earning Info', !Earning, DB('Payroll Budget', !Dept, !Job Code, !Earning, 'Job Code EOC'), 'Earning EOC');
If I use this below for the rule it works and returns "3132311" from the earnings cube for earning 0060 for example:
['Earning EOC' ] = DB('Earning Info', !Earning, '3111011', 'Earning EOC');
So using DB('Payroll Budget', !Dept, !Job Code, !Earning, 'Job Code EOC') to supply the Job Code EOC dimension for the Earning Info cube did not work.
I also tried replacing the above DB with this DB ('Job Code Info', !Job Code, 'Job Code EOC) which I thought should also work but it does not.
Am I doing something wrong or can you not use a lookup cube with more that one dimension? And the second part of my problem, can you use string
manipulation to combine dimension/measures to create a new measure GL Account in this example?
I thank you in advance for any help,
Please let me know if any other info is required.
Regards,
...Tom