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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Syndicate_Admin
Administrator
Administrator

Personal: Identifique a los que comienzan/abandonan (incluidos los recuentos de por mes)

Hola

Problema: Actualmente estoy tratando de comprender el DAX necesario para identificar a los titulares y a los que abandonan dentro de un informe de personal. Desafortunadamente, no se proporciona una fecha de inicio. También necesito la solución para habilitar los recuentos.

Soy un novato en PowerBi y DAX, pasé horas rastreando muchos otros ejemplos de problemas similares y no pude encontrar una solución que sea adecuada para su propósito o que pueda llevar a cabo.

A partir de tbl a continuación, esperaría poder devolver el Nombre 2 que quedó en el Mes 2 (2023-02) "Leaver" y el Nombre 6 que se unió en el Mes 2 "Starter".

El resultado sería una Mesa de Entrantes cada Mes y de Salientes cada Mes para la transparencia sería ideal.

Identificación del empleadoNombreFecha (mes del informe)
x1Nombre12023-01
x2Nombre22023-01
x3Nombre32023-01
x4Nombre42023-01
x5Nombre52023-01
x1Nombre12023-02
x3Nombre32023-02
x4Nombre42023-02
x5Nombre52023-02
x6Nombre6

2023-02

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

Gracias a todos por su respuesta, muy apreciada.

Syndicate_Admin
Administrator
Administrator

Hola

Se adjunta archivo PBI.

Ashish_Mathur_0-1700795437271.png

Syndicate_Admin
Administrator
Administrator

Por favor, pruebe otra variante

Screenshot_1.png

Syndicate_Admin
Administrator
Administrator

@MarkH007

Puedes probar esto

status = 
VAR _last=maxx(FILTER('Table','Table'[Employee ID]=EARLIER('Table'[Employee ID])&&'Table'[Date (Report Month)]=EDATE(EARLIER('Table'[Date (Report Month)]),-1)),'Table'[Employee ID])
VAR _next=minx(FILTER('Table','Table'[Employee ID]=EARLIER('Table'[Employee ID])&&'Table'[Date (Report Month)]=EDATE(EARLIER('Table'[Date (Report Month)]),1)),'Table'[Employee ID])
return if('Table'[Date (Report Month)]<>max('Table'[Date (Report Month)])&&_next="","end",if('Table'[Date (Report Month)]<>min('Table'[Date (Report Month)])&&_last="","new"))


Date = if('Table'[status]="new",year('Table'[Date (Report Month)])*100+month('Table'[Date (Report Month)]),if('Table'[status]="end",year(EDATE('Table'[Date (Report Month)],1))*100+month(EDATE('Table'[Date (Report Month)],1))))

11.PNG

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.