Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Hires & Terminations

the following is my data model attached. I want to display the number of hires and terminations each year. Any Ideas?

7 Replies
giakoum
Partner - Master II
Partner - Master II

create two year fields based on Employment  Date and Termination Date and then use count( distinct EMPNO) as expression with the newly created years as dimension (2 different charts)

jpenuliar
Partner - Specialist III
Partner - Specialist III

You can take inspiration from the demo file "Human Resources.qvw" from Qlik website.

Anonymous
Not applicable
Author

If you want to show both the counts on the same chart (i.e. bar chart), create a date island table (year,qtr etc) then

use the year field from this table and add 2 expressions like this,

count( DISTINCT if(year=hire_year,emp_cnt)

count( DISTINCT if(year=year_terminated,emp_cnt)

ramoncova06
Specialist III
Specialist III

you could use a canonical calendar

Canonical Date

Not applicable
Author

How should I create the two year fields?

ramoncova06
Specialist III
Specialist III

creating a master calendar should be a good way to start

The Master Calendar

Not applicable
Author

Can I do it without creating the master table? How can i extract just the year from the employment date and compare it with the payroll year?