Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Brownie
Contributor III
Contributor III

Calculate last working date of the employee by using the joining date of an another organization

i need to calculate the end date of  employee 1 of IT (11/30/2005 )using the start date of  SALES 12/1/2005 [mm/dd/yyyy]

Screenshot_1.png

Labels (4)
3 Replies
Mark_Little
Luminary
Luminary

HI @Brownie 

 

You are going to need to look at the PEEK function. Make sure that the Data is loaded in the correct order (I would normally do Employee if, Start date asc )then using something like,

IF( [Employee ID] = PEEK([Employee ID],+1), PEEK([Start Date],+1),[End Date]) AS [End Date]

Brownie
Contributor III
Contributor III
Author

using that didn't give me the desired result. 

Screenshot_2.png

Brownie
Contributor III
Contributor III
Author

i think using interval to count the days and then -1 from it might do the trick