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
Quiero caludar el rendimiento de las máquinas. Tengo estos datos:
hora | Máquina | Cantidad | Worktime | Planned1PcTime |
2020-04-28 16:16:08 | MACHINE-1 | 0 | 0 | 48 |
2020-04-28 16:16:08 | MACHINE-2 | 0 | 0 | 60 |
2020-04-28 16:16:08 | MACHINE-3 | 0 | 0 | 20 |
2020-04-28 16:16:08 | MACHINE-4 | 0 | 0 | 90 |
2020-04-28 16:16:39 | MACHINE-1 | 0 | 0.4 | 48 |
2020-04-28 16:16:39 | MACHINE-2 | 0 | 2.6 | 60 |
2020-04-28 16:16:39 | MACHINE-3 | 0 | 2 | 20 |
2020-04-28 16:16:39 | MACHINE-4 | 0 | 1.2 | 90 |
2020-04-28 16:17:09 | MACHINE-1 | 0 | 30.2 | 48 |
2020-04-28 16:17:09 | MACHINE-2 | 0 | 30.2 | 60 |
2020-04-28 16:17:09 | MACHINE-3 | 0 | 20 | 20 |
2020-04-28 16:17:09 | MACHINE-4 | 0 | 30.2 | 90 |
2020-04-28 16:17:40 | MACHINE-1 | 0 | 30.2 | 48 |
2020-04-28 16:17:40 | MACHINE-2 | 0 | 30.2 | 60 |
2020-04-28 16:17:40 | MACHINE-3 | 1 | 16.2 | 20 |
2020-04-28 16:17:40 | MACHINE-4 | 0 | 30.2 | 90 |
2020-04-28 16:18:11 | MACHINE-1 | 0 | 30.2 | 48 |
2020-04-28 16:18:11 | MACHINE-2 | 1 | 24 | 60 |
2020-04-28 16:18:11 | MACHINE-3 | 0 | 5.8 | 20 |
2020-04-28 16:18:11 | MACHINE-4 | 1 | 21.2 | 90 |
2020-04-28 16:18:41 | MACHINE-1 | 1 | 17.6 | 48 |
2020-04-28 16:18:41 | MACHINE-2 | 0 | 30.2 | 60 |
2020-04-28 16:18:41 | MACHINE-3 | 0 | 22 | 20 |
2020-04-28 16:18:41 | MACHINE-4 | 0 | 30.2 | 90 |
2020-04-28 16:19:12 | MACHINE-1 | 0 | 30.2 | 48 |
2020-04-28 16:19:12 | MACHINE-2 | 0 | 14.4 | 60 |
2020-04-28 16:19:12 | MACHINE-3 | 1 | 22 | 20 |
2020-04-28 16:19:12 | MACHINE-4 | 0 | 30.2 | 90 |
2020-04-28 16:19:43 | MACHINE-1 | 0 | 30.2 | 48 |
2020-04-28 16:19:43 | MACHINE-2 | 1 | 21 | 60 |
2020-04-28 16:19:43 | MACHINE-3 | 1 | 13.6 | 20 |
2020-04-28 16:19:43 | MACHINE-4 | 0 | 30.2 | 90 |
2020-04-28 16:20:13 | MACHINE-1 | 0 | 20.2 | 48 |
2020-04-28 16:20:13 | MACHINE-2 | 0 | 30.2 | 60 |
2020-04-28 16:20:13 | MACHINE-3 | 1 | 16.6 | 20 |
2020-04-28 16:20:13 | MACHINE-4 | 0 | 30.2 | 90 |
2020-04-28 16:20:44 | MACHINE-1 | 1 | 29.2 | 48 |
2020-04-28 16:20:44 | MACHINE-2 | 1 | 17.4 | 60 |
2020-04-28 16:20:44 | MACHINE-3 | 0 | 13.8 | 20 |
2020-04-28 16:20:44 | MACHINE-4 | 1 | 23.8 | 90 |
2020-04-28 16:21:15 | MACHINE-1 | 0 | 30.2 | 48 |
2020-04-28 16:21:15 | MACHINE-2 | 0 | 30.2 | 60 |
2020-04-28 16:21:15 | MACHINE-3 | 1 | 22 | 20 |
2020-04-28 16:21:15 | MACHINE-4 | 0 | 30.2 | 90 |
2020-04-28 16:21:45 | MACHINE-1 | 0 | 30.2 | 48 |
2020-04-28 16:21:45 | MACHINE-2 | 0 | 30.2 | 60 |
2020-04-28 16:21:45 | MACHINE-3 | 1 | 7.8 | 20 |
2020-04-28 16:21:45 | MACHINE-4 | 0 | 30.2 | 90 |
Está bien cuando el filtro se establece en una de las máquinas. Pero cuando quiero ver el rendimiento de todas las máquinas, está mal, porque Planned1PcTime es diferente para cada máquina. Debe contar el rendimiento de cada meachine y luego contar el promedio para el rendimiento de esas máquinas - en este caso: suma de rendimiento promedio para cada máquina (seperately) desviado por 4(máquinas). Quiero shaw datos en el gráfico de líneas en ubicaciones de tiempo (para este ejemplo 2 minutos).
He intentado muchas maneras mencionadas en otros posts, pero nada funciona correctamente.
Estoy enviando datos desde dispositivos cada 15 secounds.
La fórmula general para el rendimiento es:
PerformanceAVG = (SUM(Table[Quantity])*AVERAGE(Table[Planned1PcTime]))/SUM(Table[WorkTime])
en general:
Rendimiento de la máquina-1: 34,43%
Rendimiento de la máquina-2: 69,07%
Rendimiento de la máquina-3 : 74,17%
Rendimiento de la máquina-4: 62,54%
El rendimiento de todas las máquinas debe ser 60,05% NO 71,64%.
Estaré agradecido por cualquier ayuda 🙂
Solved! Go to Solution.
Hola @pak
Prueba esto
Measure =
AVERAGEX(
VALUES( 'Table'[Machine] ),
CALCULATE(
DIVIDE(
SUMX(
'Table',
'Table'[Quantity] * 'Table'[Planned1PcTime]
),
SUM( 'Table'[WorkTime] )
)
)
)
Hola @pak
Prueba esto
Measure =
AVERAGEX(
VALUES( 'Table'[Machine] ),
CALCULATE(
DIVIDE(
SUMX(
'Table',
'Table'[Quantity] * 'Table'[Planned1PcTime]
),
SUM( 'Table'[WorkTime] )
)
)
)
Funciona muy bien. ¡Gracias!
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 | |
2 | |
2 | |
2 | |
1 |