Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello Community,
I need some guidance/help with calculating Employee Retention and turnover using DAX
Here's my data looks like -
I will attach this data below.
I also created a Date table using the formula -> Date = CALENDAR( DATE(1,1,2016), DATE(12,31,2024))
My Requirement -
I need two tables (one for turnover and one for retention) with all the years from 2016 to 2024 in power bi not in excel!!!
Note - While calculating starting headcount and ending headcount please include rehire as a record for counts, dont skip rehires.
Thanks in advance.
Data -
Employee ID | Company | Hire Date | Termination Date | Impact Reason |
101 | 7/4/2018 | New Hire | ||
101 | 8/8/2020 | Adv Oppurtunities | ||
101 | 10/8/2021 | Re Hire | ||
102 | 3/15/2017 | New Hire | ||
102 | 6/21/2021 | Health | ||
103 | 2/14/2019 | New Hire | ||
104 | 8/12/2018 | New Hire | ||
104 | 5/16/2020 | Child Care | ||
105 | 10/5/2018 | New Hire | ||
105 | 12/20/2018 | Adv Oppurtunities | ||
105 | 10/20/2021 | Re Hire | ||
105 | 5/12/2022 | Adv Oppurtunities | ||
105 | 2/12/2023 | Re Hire |
Solved! Go to Solution.
Hi @Sam_BI_Analyst -Hope you already have a relationship with Date table to Employee Table.
Create calculates the number of employees at the beginning of each year.
create another measure calculates the number of employees at the end of each year
Proud to be a Super User! | |
Hi @Sam_BI_Analyst -Hope you already have a relationship with Date table to Employee Table.
Create calculates the number of employees at the beginning of each year.
create another measure calculates the number of employees at the end of each year
Proud to be a Super User! | |
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
50 | |
38 | |
38 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |