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

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

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.