Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have attached the sample data. In that data i have month wise data at the month end.I have tenure days based on the DOJ. When the employee changes from one position to another position the DoJ has to change when changed date of the title. And it has to be the DOJ.
From that date i need new tenure days for the current position. please help on this..
Thanks in Advance..
I think there is an issue with your DOJ date format and CalDate format. DOJ is actually formatted as M/D/YYYY in the Excel file. Can you try loading this one
Is this something you need in the script or front end?
so when employee changes the position..CAL date should be DOJ ?
Am I right?
See attached
Check it out
I need in script sunny..Thanks for ur response..Thanks in advance..
yes..correct..Thanks for ur response..Thanks in Advance..
Thanks for ur response i did not get correct answer...from ur answer...Can u try by using flag..when title is changed..
Thanks for ur response..Still i didnt get correct answer. I need new tenure when title changed. Its wants to start from 0.
Thanks in Advance
try this
EMPDATA:
LOAD Empcode,
Empcode&'-'&Title as KEY,
CalDate,
Month,
Year,
Title,
DOJ,
if(len(DOJ)<1,CalDate,DOJ) as TitleDate
FROM
(ooxml, embedded labels, table is Sheet1)
;
EMP_LIST:
LOAD
DISTINCT KEY,
if(MAX(TitleDate)-MIN(TitleDate)=0,min(CalDate)-min(TitleDate),MAX(TitleDate)-MIN(TitleDate)) as TenureDays
RESIDENT EMPDATA
GROUP BY KEY
;