Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
AOD
Helper III
Helper III

Creación/transformación de nuevas tablas

Hola a todos

Tengo una tabla de auditoría que almacena los cambios realizados a nivel de campo, me gustaría transformarse en una nueva tabla para almacenar los últimos cambios con el valor antiguo y nuevo como se muestra a continuación.

Necesita ayuda sobre cómo se puede lograr esto.

Tabla de auditoría existente

EmpleadoCampo 1Fecha de modificación
EP12322-Jun-20
EP123No23-Jun-20
EP12324-Jun-20
EP12422-Jun-20
EP124No23-Jun-20
EP12521-Jun-20
EP125No 22-Jun-20
EP12523-Jun-20
EP125No24-Jun-20

Nueva tabla que se creará -

EmpleadoNuevo valorValor antiguoFecha de última modificación
EP123No24-Jun-20
EP124No23-Jun-20
EP125No24-Jun-20

Gracias.

Respecto

AOD

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@AOD , Pruebe ambos como nuevas columnas

 last date = maxx(filter(Table, [Employee] =earlier([Employee]) && [Modified date] <earlier([Modified date])),[Modified date])
 last status = maxx(filter(Table, [Employee] =earlier([Employee]) && [Modified date] =earlier([last date])),[Field 1])

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@AOD , Pruebe ambos como nuevas columnas

 last date = maxx(filter(Table, [Employee] =earlier([Employee]) && [Modified date] <earlier([Modified date])),[Modified date])
 last status = maxx(filter(Table, [Employee] =earlier([Employee]) && [Modified date] =earlier([last date])),[Field 1])

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Gracias Amit por la solución.

Tengo por debajo de la salida ahora. ¿Hay alguna manera de que pueda mantener el último trabajo de cada empleado en la tabla

Capture.JPG

Gracias por tu ayuda.

AOD

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors