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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 6 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 18 | |
| 14 | |
| 14 |