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
Anonymous
Not applicable

FTE calculation taking into account working days in a month

Hello,

 

I'm a new user and I saw that you helped a lot of people

Could you please help me out with my problem?

I have an employee database and I would like to have a my visual report showing FTE per month.

On the database, I have start and end date and FTE per employee.

I have created a Table Date.

My current code is the following:

FTE Actual =
CALCULATE(
sum('FTE database'[FTE]),
FILTER(VALUES('FTE database'[Hire Date]),'FTE database'[Hire Date]<=MAX('Table Dates'[Date])),
FILTER(VALUES('FTE database'[Termination Date]),OR('FTE database'[Termination Date]>=MIN('Table Dates'[Date]),ISBLANK('FTE database'[Termination Date])))
)
 
This is working except for people terminated the first of the month, they are counted as 1 FTE. 
How can I take into account the working days in the month?
 
Thanks a lot!
Rgds
Yen-Ly
2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , try with Max

 

FTE Actual =
CALCULATE(
sum('FTE database'[FTE]),
FILTER(VALUES('FTE database'[Hire Date]),'FTE database'[Hire Date]<=MAX('Table Dates'[Date])),
FILTER(VALUES('FTE database'[Termination Date]),OR('FTE database'[Termination Date]>=Max('Table Dates'[Date]),ISBLANK('FTE database'[Termination Date])))
)

 

 

also refer

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak 

Thanks a lot for your help!!

It's working 

Yenchoute_0-1647266822066.png

 

I miss just the precision when someone starts or ends during the month, it is rounded to 1, while the FTE should be prorated to the working days per month.

Yenchoute_1-1647266822252.png

 

If you have something for this, it would be great, otherwise I'll live with it

In excel the formula I used was quite complex.

Regards

Yen

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.