This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hola expertos,
Tengo un caso de uso interesante en el que tengo datos contenidos en una tabla, pero los datos no contienen un cierto nivel de información que necesito para fines de visualización. Necesito buscar de alguna manera en la tabla basándome en una columna y agregar los resultados de una columna diferente a la fila original.
Por ejemplo, tengo el siguiente conjunto de datos:
| IDENTIFICACIÓN | Nombre | ID de amigo |
| 1 | Alex | 3 |
| 2 | Joe | 3 |
| 3 | Bob | 1 |
| 4 | Phil | 2 |
| 5 | Marcar | nulo |
Quiero agregar una columna "Nombre del amigo" como tal:
| IDENTIFICACIÓN | Nombre | ID de amigo | NOMBRE DEL AMIGO |
| 1 | Alex | 3 | Bob |
| 2 | Joe | 3 | Bob |
| 3 | Bob | 1 | Alex |
| 4 | Phil | 2 | Joe |
| 5 | Marcar | nulo | nulo |
Sin embargo, no puedo encontrar la manera de hacer esto. El proceso iterativo de mirar cada fila individualmente y luego buscar en la tabla me está haciendo tropezar.
¡Gracias por tu ayuda!
¡Me alegra saber que funcionó! Gracias
¡Eso funcionó perfectamente! ¡Muchas gracias! Sabía que era algo simple usando la función LOOKUPVALUE, simplemente no podía entenderlo. Muy apreciado.
Si desea la columna en DAX, puede hacer lo siguiente: Supongamos que su tabla es
Friend Name = LOOKUPVALUE(Parent_Child_Lookup[Name], Parent_Child_Lookup[ID], Parent_Child_Lookup[Friend ID], BLANK())
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.