Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi. I am working on HR Dashboard and I have published the Total Headcount (DISTINCT Employees who are not terminated in the Employee Table) and Active Headcount (Distinct Employees who were paid in last pay run in the Transactions Table).
I want to provide a list of Inactive Employees i.e. staff who are still in our payroll but were not eligible for pays (e.g. staff on LWP or parental leave).
Can somebody help me with this query? I am relatively new to Power Bi.
Thanks in advance.
Solved! Go to Solution.
Hi @RV1,
To list all inactive employees, you could new a table with this formula:
Table = EXCEPT ( VALUES ( 'Employee Table'[Employees] ), VALUES ( Transaction Table[Employee names] ) )
Regards,
Yuliana Gu
Hi @RV1,
To list all inactive employees, you could new a table with this formula:
Table = EXCEPT ( VALUES ( 'Employee Table'[Employees] ), VALUES ( Transaction Table[Employee names] ) )
Regards,
Yuliana Gu
Thanks. This gave me the direction. My query is more complicated as I have to filter out terminated staff from the Employee table first and compare them to the payrun transactions for the select pay period only. But overall it worked. Many thanks.
Hello,
shouldn't this be the difference between Total Headcount and Active Headcount?
If not please tell us how the Inactive Employees can be identified.
Best regards.
Sorry if my query was not very clear.
There may be staff who are currently on unpaid leave (parental leave, study leave, whatever). They do not have a termination date against them. Hence they are counted under the Headcount. But since they have not received a pay, they are Inactive. I want to generate a list of inactive staff for verification that we have not missed anybody during pay runs.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 35 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 134 | |
| 96 | |
| 78 | |
| 67 | |
| 65 |