Reply
avatar user
Anonymous
Not applicable
Partially syndicated - Outbound

Calcular el promedio de una medida de una medida de porcentaje

Hola a todos, favor su ayuda.  Tengo una medida que esta calculando la rotación mensual de personal de una tabla de Ingresos y Bajas de personal. Tengo las siguientes medidas:

 

No Bajas = CALCULATE(COUNTROWS('Empleados Activos'),USERELATIONSHIP(Fechas[Fecha],'Empleados Activos'[Fecha_baja]))
 
Empleados Todos a la Fecha =
var FechaComparacion = LASTDATE(Fechas[Fecha])
return
CALCULATE(COUNTROWS('Empleados Activos'),FILTER('Empleados Activos','Empleados Activos'[Fecha_ingreso]<=FechaComparacion),FILTER('Empleados Activos','Empleados Activos'[Fecha_baja]>=FechaComparacion))

 

Rotacion % = DIVIDE([No Bajas],Medidas[Empleados Todos a la Fecha])
 
Cuendo coloco la información en una tabla puedo tener la %Rotación mensual sin problema.  Pero al final de la tabla me está dando la suma de las rotaciones mensuales, cuando deseo tener El Promedio de todas las Rotaciones por mes
 
EduRodriRodri_1-1651080744275.png

 

Gracias de antemano

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Syndicated - Outbound

@Anonymous , Try like

 

Rotacion % = Averagex(Values(Fechas[AnoMes]) , calculate(DIVIDE([No Bajas],Medidas[Empleados Todos a la Fecha])))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

Syndicated - Outbound

@Anonymous , Try like

 

Rotacion % = Averagex(Values(Fechas[AnoMes]) , calculate(DIVIDE([No Bajas],Medidas[Empleados Todos a la Fecha])))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
avatar user

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)