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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.