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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

Reply
Anonymous
Not applicable

Lookupvalue aporta valor en blanco

¡Hola!

Me enfrento a algún problema con los resultados de LOOKUPVALUE. Básicamente tengo tabla maestra con ID's y Date y tengo otra tabla con ID 1 , ID 2, Fecha 1 y Fecha 2 como columnas. La relatuonship entre la Tabla 1 y la Tabla dos está en ID-> ID 1, así que estoy obteniendo la Fecha 1 Poblada con la relación. Quería completar la columna Fecha 2 usando el LOOKUPVALUE, pero por desgracia su traer en blanco.

Tabla 1(Maestro).

Fecha de identificación

ENCGNRL032801/3/2019
ENCGNRL032902/4/2020
ENCGNRL033003/5/2019
ENCGNRL033104/4/2019
ENCGNRL033206/3/2020
ENCGNRL033306/3/2021
ENCGNRL033403/7/2019
ENCGNRL033503/7/2020
ENCGNRL033604/5/2021
ENCGNRL033707/4/2020

Tabla 2

ID 1ID 2Fecha 1Fecha2
ENCGNRL03280ENCGNRL033301/3/2019??
ENCGNRL03290ENCGNRL033402/4/2020??
ENCGNRL03300ENCGNRL033503/5/2019??
ENCGNRL03310ENCGNRL033604/4/2019??
ENCGNRL03320ENCGNRL033706/3/2020??

LOOKUPVALUE(Date, ID, ID2), da como resultado Blank, mientras que debería haber rellenado las fechas.

ayuda será muy apreciada

Gracias

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Estaba usando la propia función LOOKUPVALUE. Creo que lo he descubierto y funciona en los dos escenarios.

Gracias por tu ayuda en esto.

View solution in original post

7 REPLIES 7
amitchandak
Super User
Super User

@aagni2000 , Uno de estos dos debería funcionar

Tanto como nuevas columnas

Fecha 2 - minx(filter(table2,[ID 1] áanterior([ID 2])),[Date1])

Fecha 2 - minx(filter(table1,table1[ID ] ?(table2[ID 2])),table1[Date])

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak entender que hay soluciones alternativas, pero la pregunta es por qué la función lookupvalue no funciona.



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.

parry2k
Super User
Super User

@aagni2000 mirando la vista de la mesa, debería volver,

- ¿Puede sasegurarse de que ID2 no tiene espacio adicional, etc., lo que no lo deja coincidir

O

- crear relación en ID con ID2 y ver si se obtiene date1, sólo para las pruebas.



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.

Anonymous
Not applicable

¡Hola!

Bueno, no hay espacio en ID2, lo he comprobado. En cuanto a chnaging la relación de ID a ID2, obtengo la fecha 2 ahora y me pierdo la fecha 1, su hacer exactamente lo contrario y no puedo tener ambas relaciones activas .i.e ID ->ID1 y ID->ID2.

Gracias

@aagni2000 Como mencioné en mi respuesta anterior fue comprobar si obtenemos las fechas en las que cambiamos la relación con ID2 para que podamos probar si obtenemos el valor de fecha y parece que está funcionando? ¿Qué expresión está utilizando para obtener el valor de fecha, RELACIONADO ( Tabla1[Fecha] ), ¿es esto lo que está utilizando?



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.

Anonymous
Not applicable

Estaba usando la propia función LOOKUPVALUE. Creo que lo he descubierto y funciona en los dos escenarios.

Gracias por tu ayuda en esto.

@aagni2000 aha, pensé que tiene el nombre de columna correcto en el valor de búsqueda, ya que nunca se pone el nombre de la tabla, nunca se usa nada sin el nombre de tabla para las columnas y nunca se usa el nombre de tabla con medidas, es una práctica recomendada. Esto se habría resuelto rápidamente si me di cuenta de que la columna Id no es del nombre de tabla correcto.

De todo lo bueno que sea oír que está resuelto, eso es todo materia.



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.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors
Top Kudoed Authors