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.
Oye, necesito ayuda con esto
Tengo una mesa
Clave | Secuencia | Empezar | Final | hora |
K1 | 1 | 4:00 | 5:00 | 00:20 |
K1 | 1 | 5:00 | 6:00 | 00:22 |
K1 | 1 | 6:00 | 7:00 | 00:30 |
K1 | 2 | 4:00 | 5:00 | 01:30 |
K1 | 2 | 5:00 | 6:00 | 01:50 |
K1 | 2 | 6:00 | 7:00 | 03:00 |
K2 | . | . | . | . |
K2 | . | . | . | . |
K2 | . | . | . | . |
K2 | . | . | . | . |
K2 | . | . | . | . |
Necesito el tiempo acumulado, por ejemplo. el valor de buscar la clave "K1" es "04:45" Necesito sumar para cada uno hasta que la secuencia máxima, y el resultado esperado, debe ser:
Primer paso el valor "04:45" está en la fila siguiente:
Clave | Secuencia | Empezar | Final | hora |
K1 | 1 | 4:00 | 5:00 | 00:20 |
el resultado es "04:45" + "00:20" á "05:05"
después de eso, el nuevo valor para buscar es "05:05" y el segundo paso es
Clave | Secuencia | Empezar | Final | hora |
K1 | 2 | 5:00 | 6:00 | 01:50 |
el resultado es "05:05" + "01:50" á "06:55"
Resultado final 06:55
y si la clave tiene más valores para la secuencia, debe continuar hasta el valor máximo de la secuencia.
normalmente este problema se resuelve con un bucle y variables auxiliares, pero no sé cómo resolver este problema con DAX.
Por favor, su ayuda con este prblem Gracias ...!!
@ralfgomezc , Consulte si esto puede ayudar
https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389
Convertir a segundo / Min primero y suma y convertir de nuevo
En Mín. hora([Tiempo])*60 + minuto([Tiempo])
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 |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |