String Measures used a Reference
Posted: Thu Oct 29, 2009 7:39 am
Can I use String or Numeric Measures as reference points when using DB rule command?
Like for this example...I'm trying to create a HR cube to accomodate personnel transfer. So I have 2 String field to determine the Dept as well as the Shift. I can't make it work. I tried using IF statement but that's just too static...I need to modify it every time I add a new Dept.
Or is what I tried to do is not possible?
2 follow up question.
1.For example with the Shift & Dept, I have ID as alias, would my 2 measure field be numeric or string if im inputting them as number instead of the whole word? Cause I'm considering all options and work around.
2. If I have to 2 Dept transferring the same personnel to the shame Shift & dept do they add up or not since this is a rule not a TI...I'm not familiar what will happen.
Like for this example...I'm trying to create a HR cube to accomodate personnel transfer. So I have 2 String field to determine the Dept as well as the Shift. I can't make it work. I tried using IF statement but that's just too static...I need to modify it every time I add a new Dept.
Code: Select all
['Transferred-In']=DB('Existing_Employee_Transfer',DB('Existing_Employee_Transfer',!Department,!Title,!Shift,!Version,!Year,!Month,'Dest. Dept ID'),!Title,DB('Existing_Employee_Transfer',!Department,!Title,!Shift,!Version,!Year,!Month,'Dest Shift ID'),!Version,!Year,!Month,'# of Employee For Transfer');
2 follow up question.
1.For example with the Shift & Dept, I have ID as alias, would my 2 measure field be numeric or string if im inputting them as number instead of the whole word? Cause I'm considering all options and work around.
2. If I have to 2 Dept transferring the same personnel to the shame Shift & dept do they add up or not since this is a rule not a TI...I'm not familiar what will happen.