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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Datos de empleados activos

Hola

Tengo datos de FTE publicados por fecha de inicio y finalización de la asignación (nulos si todavía están en el negocio), por lo que he utilizado la fórmula de Recuento de empleados activos que se indica a continuación, pero también necesito mostrar si alguien está de baja por maternidad, su FTE debería ser cero. Algunos datos ficticios a continuación para mostrar un ejemplo del conjunto de datos que tenemos.

Mary Jane | inicio: 1/5/2015 | Fin: null | EJC: 1 | Ausencia: Maternidad | Inicio de ausencia: 1/7/21 | Fin de ausencia: 1/7/22 |

Por lo tanto, idealmente, el ETC debería ser 1 desde 2015 hasta el 1/7/21, luego cero desde el 1/7/21 hasta el 1/7/22, y luego 1 nuevamente a partir de entonces. ¿Hay alguna manera de modificar mi fórmula para tener en cuenta las interrupciones por maternidad?

Recuento de empleados activos =
DÓNDE currentDate =
..MAX ( 'Fecha'[Fecha] )
DEVOLUCIÓN
CALCULAR (
SUMA(hr_costcentre_fte[EJC]),
FILTRO (
hr_costcentre_fte,
( hr_costcentre_fte[AssignmentStartDate] <= currentDate
&& O(hr_costcentre_fte[AssignmentEndDate] >= currentDate, ISBLANK( hr_costcentre_fte[AssignmentEndDate] ))
)))
¡Gracias!
1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@LouiseB1409 , consulte si esto puede ayudar


Power BI: Análisis de recursos humanos: empleados a la fecha: https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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