Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone,
Need a little help in getting my number format right in my load script. Here is what I have.......but not working.
Thanks in advance.
Num((if(Len(trim(Acq_Hire_Date) > 0), Num(LastWorked_Date) - Num(Acq_Hire_Date), Num(LastWorked_Date) - Num(HireDate)) / 365,'00')) as [LOS]
Got it to work. Thanks everyone for your help.
Num((if(Len(trim(Acq_Hire_Date) > 0), Num(LastWorked_Date) - Num(Acq_Hire_Date), Num(LastWorked_Date) - Num(HireDate)) / 365),'00') as [LOS]
Hi Thom,
Try this:
Num((if(Len(trim(Acq_Hire_Date) > 0), Num(LastWorked_Date) - Num(Acq_Hire_Date),Num(LastWorked_Date) - Num(HireDate)) / 365,'#,##0.00')) as [LOS]
Regards,
Enrique.
May be this
Num(
(If(Len(trim(Acq_Hire_Date) > 0,
LastWorked_Date - Acq_Hire_Date,
LastWorked_Date - HireDate)/365),
'00') as [LOS]
May be try this?
If(Len(Trim(Acq_Hire_Date))>0, Num(LastWorked_Date - Acq_Hire_Date), Num((LastWorked_Date - HireDate)/365)) as LOS
Split to diff expressions and then try
nope
nope
Can you share a screenshot?
Num((if(isnull(Acq_Hire_Date),Num(LastWorked_Date) - Num(HireDate), Num(LastWorked_Date) - Num(Acq_Hire_Date)) / 365,'00')) as [LOS]
Got it to work. Thanks everyone for your help.
Num((if(Len(trim(Acq_Hire_Date) > 0), Num(LastWorked_Date) - Num(Acq_Hire_Date), Num(LastWorked_Date) - Num(HireDate)) / 365),'00') as [LOS]
Great, if you got what you wanted, I would suggest closing this thread by marking your own response as the correct answer.
Best,
Sunny