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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Steve_Montoya_G
Regular Visitor

Ayuda u orientación

Hola a todos.

 

por for su ayuda con lo siguiente:

 

Tengo una tabla con transacciones de ingresos y salidas y pretendo identificar de todos los registros que se realizan quienes aún no han salido, investigando vi que la función SUMMARIZE, me era útil para agrupar los registros por ID con el máximo de fecha por cada ID para el registro más reciente.

 

Tabla creada.

TABLA1 = SUMMARIZE('Consolidado', 'Consolidado'[ID], "Fecha",MAX('Consolidado'[Date]))

 

A esta tabla le estoy tratando de hacer un “Lookupvalue”, que me permita traer la última transacción (Ingreso o Salida) pasándole un para metro adicional a la formula (Tabla1.Fecha y Tabla2.Fecha.

 

 LOOKUPVALUE(Tabla1[Transaccion],

 Tabla1[ID],Tabla2[ID],

Tabla1[Date],Tabla2[Fecha])

 

Pero recibo el siguiente mensaje de error "Se proporcionó una tabla de varios valores donde se esperaba un solo valor".

 

Por favor su orientación en cómo puedo solucionar este error o de que forma puedo lograr lo que deseo realizar, muchas gracias

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Steve_Montoya_G , try like

 

 Max(filter(Table1,

 Table1[ID] = Table2[ID] && Table1[Date] = Table2[Date]),Table1[Transaction])

 

refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Steve_Montoya_G , try like

 

 Max(filter(Table1,

 Table1[ID] = Table2[ID] && Table1[Date] = Table2[Date]),Table1[Transaction])

 

refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you very much, it worked correctly

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.