How do I write the following statement given this scenario?
If the feild WORK FUNCTION is equal to CARTPICK then I want to divide the feild CARTONS by HOURS. If the feild WORK FUNCTION is equal to FULLPICK then I want to divide the feild TRANS by HOURS. If WORK FUNCTION equals neither then I want it to be zero. So it should look something like this, I think:
CPH:if([WORK FUNCTION]=CARTPICK,"[CARTONS]/[HOURS]",IF([WORKFUNCTION]=FULLPICK,"[TRANS]/[HOURS]",""))
Is this correct???
If the feild WORK FUNCTION is equal to CARTPICK then I want to divide the feild CARTONS by HOURS. If the feild WORK FUNCTION is equal to FULLPICK then I want to divide the feild TRANS by HOURS. If WORK FUNCTION equals neither then I want it to be zero. So it should look something like this, I think:
CPH:if([WORK FUNCTION]=CARTPICK,"[CARTONS]/[HOURS]",IF([WORKFUNCTION]=FULLPICK,"[TRANS]/[HOURS]",""))
Is this correct???