Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hola a todos,
He estado luchando con esta tarea durante todo el día, he intentado varios enfoques, pero ninguno de ellos funcionó.
Tengo una tabla [status_log] que contiene los cambios de estado log de tickets. Por lo tanto, cada vez que un empleado cambia el estado de un ticket, el cambio se registra en esta tabla. Las columnas son:
TicketID - segmento - change_date - old_status - new_status
Un ticket se puede procesar en segmentos, por lo tanto, hay una columna de segmento.
Ejemplo:
163 - 1 - 7/9/2019 - listo - ejecución
163 - 1 - 14/9/2019 - ejecución- hecho
165- 1 - 1/9/2019 - listo - ejecución
165 - 1 - 10/9/2019 - ejecución- hecho
165- 2- 2/9/2019 - listo - ejecución
165 - 2- 7/9/2019 - ejecución- hecho
Lo que quiero es una tabla para registrar en qué fecha un ticket se convirtió en el estado de ejecución y cuándo cambió de ejecución.
Ergo: duración de la fase de ejecución.
Tenga en cuenta que cuando un billete tiene más de un segmento, solo se toma la fecha más temprana y más reciente.
Mi tabla:
TicketID - start_date - end_date
163 - 7/9/2019 - 14/9/2019
165 - 1/9/2019 - 10/9/2019
¿Puede alguien ayudarme por favor haciendo esta nueva tabla y buscar los datos mencionados?
Gracias de antemano!!
Solved! Go to Solution.
Por favor, intente
Table = ADDCOLUMNS( SUMMARIZE(ticket,ticket[TicketID],"startdate",min(ticket[change_date])),"change_date",MAXX(FILTER(ticket,ticket[TicketID]=EARLIER(ticket[TicketID])&&ticket[old_status]="execution"),ticket[change_date]))
Proud to be a Super User!
Por favor, intente
Table = ADDCOLUMNS( SUMMARIZE(ticket,ticket[TicketID],"startdate",min(ticket[change_date])),"change_date",MAXX(FILTER(ticket,ticket[TicketID]=EARLIER(ticket[TicketID])&&ticket[old_status]="execution"),ticket[change_date]))
Proud to be a Super User!
¡Muchas gracias, Ryan! Eso fue muy útil.
Salud
Basilea
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.