I have an HR Cube having the following dimension
Function
Facility
Department
Nature
Employee
Scenario
Year
Months
Employee Measures.
I am trying to get data from a Employee master cube having dimensions
Facility
Department
Nature
Employee
Scenario
Year
Months
Employee Master Measures.
I am also trying to get a value from a different cube which is a working day lookup cube, which stores the no of working day in a month.
Year
Months
Working Day Measures(Working Day(n),Holidays(n))
My problem is I am getting results from the Employee master cube if i write 'only' this part of code in my rules.
Code: Select all
# get Base rate
#['Budgeted','Base Rate']=N:DB('Employee Master',!Facility,!Department,!Central Nature,!Year,!Months,'HR',!Employee,'Base Rate');
# get vacation hours.
['Budgeted','Vacation Hours']=N:DB('Employee Master',!Facility,!Department,!Central Nature,!Year,!Months,'HR',!Employee,'Accrued Vacation Hours');
# get no of employees.
['Budgeted','No of Shift or Employee']=N:if(ATTRS('Employee',!Employee,'Employee Name')@<>'TEMP ',DB('Employee Master',!Facility,!Department,!Central Nature,!Year,!Months,'HR',!Employee,'No of Employees'),STET);
But as soon as i include this part in the rules the values for (base rate, vacation hours, no of employees) which i am taking from the Employee master cube goes to zero
I get values for only the working days, rest of the values turns zero.
Code: Select all
#get the working days.
['Budgeted','Working Days']= N:DB('Working Day',!Year,!Months,'Total Working Day');
['Budgeted','Holidays']=N:DB('Working Day',!Year,!Months,'Total Holidays');
I am not able to figure out what is going wrong, I have also tried unloading the cube but nothing changes.
Are the above rules written correct or am i doing some mistake here?
Please help. Thank you.