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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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.