Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello everyone,
Ex:
EMP ID | Year | Date | Type |
1 | 2015 | 1/2/2015 | hire |
2 | 2015 | 7/20/2015 | hire |
3 | 2016 | 2/3/2016 | hire |
2 | 2016 | 9/2/2016 | terminate |
3 | 2017 | 7/3/2017 | terminate |
2 | 2017 | 8/22/2017 | hire |
2 | 2017 | 10/12/2017 | terminate |
The result should be:
Year | Count of Hire Employee | Count of Terminate Employee | Count of Active Employee from 1 year previous |
2015 | 2 | 0 | 2 |
2016 | 1 | 1 | 2 |
2017 | 0 | 2 | 0 |
For Count of Hire Employee and Count of Terminate Employee,
For Count of Active Employee from 1 year previous,
How can we count as result below ? Can we do it in creating measure expresion? Please help!
I also applied https://community.qlik.com/t5/New-to-Qlik-Sense/Active-employee-count-for-specific-year/td-p/1289285...
, but not work
Hello!
Anyone? Pleasee
I'm not sure I understand your output correctly. You show one hired EMP in 2017 and one active from 2015, yet your sum of active EMP is only 1? Also, do you re-use the EMP_ID because ID 2 is hired, terminated and hired again.
Thanks for your response.
We calculate for the current and previous year
For example:
In 2017 and previous is 2016,
We have:
The total will be 1.
hi,
you need to use peek & previous function to calculate active employee which quite similar like calculating inventory balance :
see following links :
https://community.qlik.com/t5/New-to-Qlik-Sense/Active-employee-count-for-specific-year/td-p/1289285
https://community.qlik.com/t5/New-to-Qlik-Sense/Opening-and-Closing-Balances-per-month/td-p/1379271
Search for Employee Headcount
Hope this helps you
Thanks
Vikas
Hi Vikasmahajan,
Thank you for your input. I already research your link, but still stuck 😞