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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
fezekandlela
Contributor
Contributor

Number of employee per month

Hi, I want to use the Employee Summary table to calculate the number of employees per month and year. The aim is to track the increments and decrements in the total number of employees.

EmployeeSummary:
LOAD
Paypoint,
EmpNo,
EmpFirstname,
EmpSurname,
EmpId,
"group Start Date",
"Recruitment Date",
"Job Name",
"OS Name",
"Payment Type",
Gender,
Race,
"Employee Type",
Status

Labels (2)
1 Reply
BrunPierre
Partner - Master II
Partner - Master II

This expression should indicate the number of active employees per month. It only considers employees who have an "active" status and whose termination date is on or before the last day of the month.

=Count(DISTINCT {<status = {'active'}, resignDate = {"<=$(=MonthEnd(Max(resignDate)))"}>} empNo)