Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
MRIZ
Helper II
Helper II

DAX for COUNTING Employee_ID distinctly from Employee Table including current and previous yearmonth

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

YearMonthTotal Number of Employees
24-Jan4
24-Feb8
24-Mar12

 

Table 2 my employee table

 

Employee_IDYearMonth
E112023-01
E122023-01
E132023-01
E142023-01
E12023-02
E22023-02
E32023-02
E42023-02
E52023-03
E62023-03
E72023-03
E82023-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.

1 ACCEPTED SOLUTION
tharunkumarRTK
Super User
Super User

@MRIZ 

Screenshot 2024-07-20 at 11.45.43 PM.png
Please find the file here: Link

 



Need Power BI consultation, hire me on UpWork .


If the post helps please give a thumbs up



If it solves your issue, please accept it as the solution to help the other members find it more quickly.




Tharun



 

 

View solution in original post

1 REPLY 1
tharunkumarRTK
Super User
Super User

@MRIZ 

Screenshot 2024-07-20 at 11.45.43 PM.png
Please find the file here: Link

 



Need Power BI consultation, hire me on UpWork .


If the post helps please give a thumbs up



If it solves your issue, please accept it as the solution to help the other members find it more quickly.




Tharun



 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.