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
vjerohm
New Member

Adding the proper column or measures

Hello, I am very new to Dax and I am trying to figure out how to properly calculate the Headcount every month using recurring employee IDs in my data set. As well trying to figure out new hires using MIN using the date to see when their Employee ID starts to show up and MAX function to see when it is last seen. I am very new to Power BI and DAX so I have been having a hard time figuring out how to do anything.

All relevant info that my data sets give me is employee ID and each data file is attached the month and year that the data was gathered.

Please any tips or suggestion is deeply appreciated! Thank you very much

1 REPLY 1
Anonymous
Not applicable

Hi @vjerohm 

You can try to use DISTINCTCOUNT() function to calculate the Headcount every month. You can refer to the following link.

and can you provide some sample data for solving the problem?

DISTINCTCOUNT function (DAX) - DAX | Microsoft Learn

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Top Solution Authors
Top Kudoed Authors