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
kodnil2020
Helper I
Helper I

Cálculo de la diversidad

Hola

Necesito ayuda en el cálculo.

Fórmula: (recuento de empleadas activas en el Departamento / Total de empleados en el departamento)*100

Datos:

DepartamentoGéneroId
Dept1masculino11
Dept1masculino12
Dept1masculino13
Dept1Mujer14
Dept1masculino15
Dept1Mujer16
Dept2masculino17
Dept2masculino18
Dept2masculino19
Dept2Mujer20
Dept2masculino21
Dept2Mujer22

IdActivo
111
121
131
141
151
161
171
181
191
201
210
220

Resultado

Departamento% Diversidad
Dept133
Dept225
4 REPLIES 4
Fowmy
Super User
Super User

@kodnil2020

Prueba esta medida:

Measure = 

VAR _TotalEmployees = CALCULATE( COUNTROWS(Department),IDs[Active]=1)
VAR _Female = 
CALCULATE(
    COUNTROWS(Department),
    IDs[Active]=1,
    Department[Gender]="Female"
)

RETURN

DIVIDE(
    _Female,
    _TotalEmployees
)

________________________

¿He respondido a tu pregunta? Marque este post como una solución, esto ayudará a otros!.

Acepto 🙂 KUDOS

YoutubeLinkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Está tomando Total Active en lugar de Total Department Active.

Una consulta más: ¿Cómo puedo mostrar Avergage en la parte inferior:

Departamento% Diversidad
Dept133
Dept225
Promedio29

@Fowmy Está trabajando para mí. Por favor, ignore los comentarios anteriores

amitchandak
Super User
Super User

@kodnil2020 , Probar como

divide(calculate(count(Table[ID]), Table[Gender]- "Female"),calculate(count(Table[ID])))

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.