Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.
¡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
ENCGNRL03280 | 1/3/2019 |
ENCGNRL03290 | 2/4/2020 |
ENCGNRL03300 | 3/5/2019 |
ENCGNRL03310 | 4/4/2019 |
ENCGNRL03320 | 6/3/2020 |
ENCGNRL03330 | 6/3/2021 |
ENCGNRL03340 | 3/7/2019 |
ENCGNRL03350 | 3/7/2020 |
ENCGNRL03360 | 4/5/2021 |
ENCGNRL03370 | 7/4/2020 |
Tabla 2
ID 1 | ID 2 | Fecha 1 | Fecha2 |
ENCGNRL03280 | ENCGNRL03330 | 1/3/2019 | ?? |
ENCGNRL03290 | ENCGNRL03340 | 2/4/2020 | ?? |
ENCGNRL03300 | ENCGNRL03350 | 3/5/2019 | ?? |
ENCGNRL03310 | ENCGNRL03360 | 4/4/2019 | ?? |
ENCGNRL03320 | ENCGNRL03370 | 6/3/2020 | ?? |
LOOKUPVALUE(Date, ID, ID2), da como resultado Blank, mientras que debería haber rellenado las fechas.
ayuda será muy apreciada
Gracias
Solved! Go to Solution.
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 , 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])
@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.
@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.
¡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.
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.
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.