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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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