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.
Me gustaría ayuda para construir una fórmula DAX que recogería para cada día el evento más temprano - para cada una de las L.
También otra fórmula similar el último evento, de una manera que sería capaz de restar los dos y encontrar el número de horas que la línea opera en cada día en particular..
Inicialmente pude obtenerlo a través de MEASUREMENT, sin embargo, no cómo en la tabla Formato y no pude crear una fórmula de resta entre dos medidas, razón por la que prefiero una nueva columna.
Gracias
StartTime StopTime LineNum
4/3/2020 17:17 4/3/2020 17:17 3
4/3/2020 17:12 4/3/2020 17:12 1
4/3/2020 17:09 4/3/2020 17:09 2
4/3/2020 17:06 4/3/2020 17:06 3
4/3/2020 17:01 4/3/2020 17:01 2
4/3/2020 16:58 4/3/2020 16:58 3
4/3/2020 6:28 4/3/2020 6:28 2
4/3/2020 5:27 4/3/2020 5:27 3
4/3/2020 4:27 4/3/2020 4:27 1
4/2/2020 20:12 4/2/2020 20:16 3
4/2/2020 20:10 4/2/2020 20:14 1
4/2/2020 20:09 4/2/2020 20:14 2
4/2/2020 8:27 4/3/2020 8:40 1
4/2/2020 8:37 4/2/2020 8:39 2
4/2/2020 7:15 4/2/2020 7:18 3
Solved! Go to Solution.
@elmorlc Creo que tengo tu pregunta, mira el archivo pbix adjunto. Hay muchas tablas en ella, sólo se centran en la tabla de línea y una página llamada línea.
Puede tomarlo desde aquí y ajustar según su necesidad. Apreciaría Kudos 🙂 si mi solución me ayudara.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@elmorlc ,
La información que ha proporcionado no me está aclarando el problema. Por favor, explíquelo con un ejemplo.
Aprecia tus Felicitaciones.
Hola Amit,
Lo siento si mi explicación no fue clara.
Vea el ejemplo siguiente, donde por día y por cada línea, registramos el primer y último evento, por lo que la diferencia de fecha se puede restar.
Hora de finalización de la hora de inicio de LineNum : horario de las horas
1 4/2/2020 4/2/20 8:27 AM 4/3/20 8:40 AM 24
2 4/2/2020 4/2/20 8:37 AM 4/2/20 8:14 PM 12
3 4/2/2020 4/2/20 7:15 AM 4/2/20 8:16 PM 13
1 4/3/2020 4/3/20 4:27 AM 4/3/20 5:12 PM 13
2 4/3/2020 4/3/20 6:28 AM 4/3/20 5:09 PM 11
3 4/3/2020 4/3/20 5:27 AM 4/3/20 5:17 PM 12
Ya tengo una solución según la segunda respuesta, pero agradece tu ayuda.
En el mismo tipo de tema, una cosa que puedes ayudar.
¿Hay alguna manera de que podamos replicar una "MEDIDA" en la Tabla de Datos (Edición) de una manera que se mostraría para nosotros allí y nos permitiría hacer otros cálculos con un resultado de medición?
@elmorlc Creo que tengo tu pregunta, mira el archivo pbix adjunto. Hay muchas tablas en ella, sólo se centran en la tabla de línea y una página llamada línea.
Puede tomarlo desde aquí y ajustar según su necesidad. Apreciaría Kudos 🙂 si mi solución me ayudara.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hola Parry,
su ejemplo fue suficiente y me ayudó a llegar a una solución para el problema.
La única otra sugerencia relacionada sería en el resultado de las horas, podemos un número entero durante horas. Puedo hacerlo Minute también, pero ¿qué truco podríamos usar para obtener HH: MM en la fórmula DIFF?
saludos
Leo
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 |