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
jbqrn
Helper I
Helper I

FTE Human Resources DAX

Hi, 
I have data from Human Resources and I need to calculate the FTE (Full Time Employee) for any specific moment.
I have the Employee Code, the Starting Date and the Ending Date in the company. 
Connected with a date table with innactive connections (I use USERELATIONSHIP) to use the tables (no problem with that).

The problem is that I dont know how to calculate the FTE (in DAYS) I attach the formula that I use to calculate current employees

Nº employees=
VAR FechaComparacion = LASTDATE(DIM_fechas[Fecha])
RETURN
CALCULATE(COUNTROWS(M015_Maestro_de_Empleados),
M015_Maestro_de_Empleados[Fecha de alta en compañía]<=FechaComparacion,
M015_Maestro_de_Empleados[Fecha de bajas]>=FechaComparacion
)
 
THIS IS THE DATA
EmployeeStarting DateEndig Date
1800000704/01/2019 1
100006017/10/2016 0.81
2000000204/10/2021 1
100023501/10/2017 1
100023401/10/2017 1
100023001/10/2017 1
100025701/09/2018 1
100020622/05/2017 1
100023101/10/2017 1
100021724/07/2017 1
1600000301/09/2008 1
100031204/01/2021 1
1800003410/12/2019 1
100023701/10/2017 0.75
100020303/04/2017 1
1800002303/09/2019 1
1600000416/04/2018 1
1800005110/02/2021 1
1600000101/06/1998 1
100019121/10/2016 1
100023601/10/2017 0.87
100023201/10/2017 1
1800006002/08/202127/10/20211
100007017/10/2016 1
100022501/10/2017 1
100029601/05/2021 1
100033113/12/2021 1
100015821/10/2016 1
1800000101/04/2019 1
100004317/10/2016 1
100011621/10/2016 1
100027423/04/2019 1
100013021/10/2016 1
200001001/12/2020 1
1800001918/05/2021 1
100009021/10/2016 1
100013721/10/2016 1
100031304/01/2021 1
100021624/07/2017 0.75
900000415/02/2016 1
200000312/03/1996 1
200000401/10/2000 1
100007417/10/2016 1
100025107/05/2018 1
100023801/10/2017 1
1800004801/07/202012/04/20211
200000606/03/2009 1
100007317/10/2016 1
200000815/05/201815/07/20211
100002212/02/2015 1
100006717/10/2016 1
100028101/07/201922/04/20211

 

 

I need to obtain (in days) the FTE per employee and display it in a card, filtering by date (actual or past dates)

I tried to obtain it with a calculated column, but it does not give a variable FTE so it is not vaild...

Any idea/suggestion about by problem??

Thanks!!!

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@jbqrn I have an FTE calculation in DAX Cookbook. Chapter 7, Recipe 5 and you can get the DAX here: PacktPublishing/DAX-Cookbook: DAX Cookbook, Published by Packt (github.com)



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

@jbqrn I have an FTE calculation in DAX Cookbook. Chapter 7, Recipe 5 and you can get the DAX here: PacktPublishing/DAX-Cookbook: DAX Cookbook, Published by Packt (github.com)



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

thank you @Greg_Deckler for the support and incredible amount of resources!

 

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!

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.