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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
I am trying to make Employee Turnover report. I am stuck in making a DAX which can give me output (Table 1) from table (Table 2)
Table 1 want output in Power bi report
YearMonth | Total Number of Employees |
24-Jan | 4 |
24-Feb | 8 |
24-Mar | 12 |
Table 2 my employee table
Employee_ID | YearMonth |
E11 | 2023-01 |
E12 | 2023-01 |
E13 | 2023-01 |
E14 | 2023-01 |
E1 | 2023-02 |
E2 | 2023-02 |
E3 | 2023-02 |
E4 | 2023-02 |
E5 | 2023-03 |
E6 | 2023-03 |
E7 | 2023-03 |
E8 | 2023-03 |
Here you can see that in the output table (Table 1) every new YEAR-MONTH includes the distinct count of Employee_ID from previous period.
Plz give me DAX to get Total Number Of Employees
Thanks.
Solved! Go to Solution.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.