Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hola a todos,
Tengo una tabla de empleados activos de cada mes como el siguiente.
Fecha | Empleado |
2020/12/1 | David |
2020/12/1 | Jeff |
2020/12/1 | Marco |
2020/12/1 | Alegría |
2020/12/1 | Peter |
2021/1/1 | David |
2021/1/1 | Jeff |
2021/1/1 | Marco |
2021/1/1 | Alegría |
2021/1/1 | Jenny |
2021/1/1 | Kate |
2021/2/1 | Jeff |
2021/2/1 | Marco |
2021/2/1 | Alegría |
2021/2/1 | Jenny |
2021/2/1 | Kate |
2021/2/1 | Aaron |
De 2020/12 a 2021/1, 1 persona peter se fue, y 2 personas Jenny y Kate se unieron. De 2021/1 a 2021/2, David se fue y Aaron se unió.
Pero si tuviéramos que mirar de 2020/12 a 2021/2, Peter y David se fueron, y Jenny, Kate y Aaron se unieron.
Quiero poder mostrar cuántas personas se unieron y cuántas personas se fueron, y también la tasa de rotación de un rango de fechas.
Lo siento, pero no puedo pensar en una buena manera de hacer esto. ¡Necesito ayuda para esto, gracias!
Saludos
David
Solved! Go to Solution.
No @primolee,
Pruebe la siguiente fórmula para crear medidas:
Left =
var _First = MIN('Table'[Date])
var _Last = MAX('Table'[Date])
var Table1 =
SELECTCOLUMNS(
FILTER(
'Table',
'Table'[Date].[MonthNo] = MONTH(_First)
&&'Table'[Date].[Year] = YEAR(_First)
),
"Employee",
'Table'[Employee]
)
var Table2 =
SELECTCOLUMNS(
FILTER(
'Table',
'Table'[Date].[MonthNo] = MONTH(_Last)
&&'Table'[Date].[Year] = YEAR(_Last)
),
"Employee",
'Table'[Employee]
)
return
COUNTAX(
EXCEPT(Table1,Table2),
[Employee]
)
Joined =
var _First = MIN('Table'[Date])
var _Last = MAX('Table'[Date])
var Table1 =
SELECTCOLUMNS(
FILTER(
'Table',
'Table'[Date].[MonthNo] = MONTH(_First)
&&'Table'[Date].[Year] = YEAR(_First)
),
"Employee",
'Table'[Employee]
)
var Table2 =
SELECTCOLUMNS(
FILTER(
'Table',
'Table'[Date].[MonthNo] = MONTH(_Last)
&&'Table'[Date].[Year] = YEAR(_Last)
),
"Employee",
'Table'[Employee]
)
return
COUNTAX(
EXCEPT(Table2,Table1),
[Employee]
)
Este es mi archivo PBIX.
Si el problema aún no se ha resuelto, proporcione información detallada sobre errores o el resultado esperado que espera. Hágamelo saber inmediatamente, esperando su respuesta.
Saludos
Winniz
Si esta publicación ayuda, considere Aceptarla como la solución para ayudar a los demás miembros a encontrarla más rápidamente.
No @primolee,
Pruebe la siguiente fórmula para crear medidas:
Left =
var _First = MIN('Table'[Date])
var _Last = MAX('Table'[Date])
var Table1 =
SELECTCOLUMNS(
FILTER(
'Table',
'Table'[Date].[MonthNo] = MONTH(_First)
&&'Table'[Date].[Year] = YEAR(_First)
),
"Employee",
'Table'[Employee]
)
var Table2 =
SELECTCOLUMNS(
FILTER(
'Table',
'Table'[Date].[MonthNo] = MONTH(_Last)
&&'Table'[Date].[Year] = YEAR(_Last)
),
"Employee",
'Table'[Employee]
)
return
COUNTAX(
EXCEPT(Table1,Table2),
[Employee]
)
Joined =
var _First = MIN('Table'[Date])
var _Last = MAX('Table'[Date])
var Table1 =
SELECTCOLUMNS(
FILTER(
'Table',
'Table'[Date].[MonthNo] = MONTH(_First)
&&'Table'[Date].[Year] = YEAR(_First)
),
"Employee",
'Table'[Employee]
)
var Table2 =
SELECTCOLUMNS(
FILTER(
'Table',
'Table'[Date].[MonthNo] = MONTH(_Last)
&&'Table'[Date].[Year] = YEAR(_Last)
),
"Employee",
'Table'[Employee]
)
return
COUNTAX(
EXCEPT(Table2,Table1),
[Employee]
)
Este es mi archivo PBIX.
Si el problema aún no se ha resuelto, proporcione información detallada sobre errores o el resultado esperado que espera. Hágamelo saber inmediatamente, esperando su respuesta.
Saludos
Winniz
Si esta publicación ayuda, considere Aceptarla como la solución para ayudar a los demás miembros a encontrarla más rápidamente.
@primolee , es como una tabla de instantáneas?
Compruebe el enfoque de Mes a mes usando isblank para la retención de clientes, que debe ayudar
Parte 1 de retención del cliente:
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/b...
Retención de clientes Parte 2: Período durante la retención del período :https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-2-Period-over-Period-Retenti...