Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Employee Retention

Hello all --

It has been requested to calculate employee retention. Retention is assumed as any employee who exists in one period after another period. 

The data we have is table with all the days an employee was active. In the first example, employee id 1 was active from 1/1 to 3/1. Employee ID 2 was active from 1/1 to 4/1

Employee IDReference Date
11/1/2016
12/1/2016
13/1/2016
21/1/2016
22/1/2016
23/1/2016
24/1/2016

Therefore retention on Jan to Feb would be 2, Feb to Mar would be 2, Mar to Apr would be 1. (This is an example, there will be multiple Employee IDs across these time frames).

There is a master calendar tied to Reference Date with Month/Qtr/Year fields.

How can I represent this in a QlikView chart over Month/Qtr/Year?

Output should be:

MonthRetention
Jan-20162
Feb-20162
March-20162
April-20161


or

QtrRetention
Q12
Q21

or

YearRetention
20162
2 Replies
its_anandrjs

Find the attached and try with this way with Month,quarter and year fields to be added on the model

Anonymous
Not applicable
Author

Hi Anand -

This gives me the distinct employee IDs that existed in a period, not whether or not they existed in a prior period. My example was trivial, but there are hundreds of employee IDs across days. Need to be able to track whether an employee ID exists from month to month, from qtr to qtr, and from year to year.

For example, we may start 2016 with 100 distinct employee IDs. On Jan 1 2017, only 56 of those 100 distinct employee IDs are still active. That's 56 employees retained out of 100. In the meantime, we will have added 44 new employees to fill the ones who left.

We are still then at 100 distinct employee IDs, but only 56 of those 100 are retained from the prior period.

Thanks!