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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

DAX on dates

Hi ,

 

I have a table whixh is like this 

 

Employee ID,    from date,         to date,            status 

1                     1 may 2019       30 july 2010        active

 

I want to calculate all active employees in june but calendar is connected to from date . Active employees is not being calculated for month of june or july .. 

 

Any thoughts

1 REPLY 1
MattAllington
Community Champion
Community Champion

I wrote an article a few years ago that should help you. It's not the same problem, but the principle is the same. https://powerpivotpro.com/2016/12/how-many-working-days-has-an-employee-been-off-work/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.