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.
Hola
Necesito ayuda en el cálculo.
Fórmula: (recuento de empleadas activas en el Departamento / Total de empleados en el departamento)*100
Datos:
Departamento | Género | Id |
Dept1 | masculino | 11 |
Dept1 | masculino | 12 |
Dept1 | masculino | 13 |
Dept1 | Mujer | 14 |
Dept1 | masculino | 15 |
Dept1 | Mujer | 16 |
Dept2 | masculino | 17 |
Dept2 | masculino | 18 |
Dept2 | masculino | 19 |
Dept2 | Mujer | 20 |
Dept2 | masculino | 21 |
Dept2 | Mujer | 22 |
Id | Activo |
11 | 1 |
12 | 1 |
13 | 1 |
14 | 1 |
15 | 1 |
16 | 1 |
17 | 1 |
18 | 1 |
19 | 1 |
20 | 1 |
21 | 0 |
22 | 0 |
Resultado
Departamento | % Diversidad |
Dept1 | 33 |
Dept2 | 25 |
@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
⭕ 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 |
Dept1 | 33 |
Dept2 | 25 |
Promedio | 29 |
@kodnil2020 , Probar como
divide(calculate(count(Table[ID]), Table[Gender]- "Female"),calculate(count(Table[ID])))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |