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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

CountSi la fecha de inicio del empleado es anterior a esta fecha

Buenas tardes

Todavía soy muy nuevo en Power BI y el entorno de Dax y busco un poco de ayuda.

Tengo una tabla Calendario con todas las fechas de 2019 a 2021. Quiero agregar una columna en esta tabla que, basada en una tabla de empleados. La columna debe contar el número de empleados disponibles para cada fecha en función de la fecha de contratación de cada empleado.

Mis mesas se ven así :

empIdNombreApellidoFecha de inicio
1AB2018-03-19
2MG2018-09-04
3IG2019-03-07
4MN2018-04-30
............

Y debe estar conectado a esta columna en mi tabla Calendario

FullDateAlternateKeyN.o de empleados
2020-07-01
2020-07-02
...

¡Gracias!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@SB93_ , Una nueva columna en la tabla de fechas

countx(filter(employee, employee[Starting Date] <- Date[Date]),employee[empId])

Además, consulte mi blog de recursos humanos: https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Vídeo : https://www.youtube.com/watch?v=e6Y-l_JtCq4

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@SB93_ , Una nueva columna en la tabla de fechas

countx(filter(employee, employee[Starting Date] <- Date[Date]),employee[empId])

Además, consulte mi blog de recursos humanos: https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Vídeo : https://www.youtube.com/watch?v=e6Y-l_JtCq4

Anonymous
Not applicable

Muchas gracias, funciona perfectamente !

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.