Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hola a todos
(A continuación se incluye una captura de pantalla de la estructura de la tabla)
Estoy tratando de mostrar esencialmente valores de ID únicos en la tabla 4 (que se recuperan de la tabla 1, 2 y 3) y mostrar la fase "más reciente" basada en una condición similar a '
si table4[id] existe en table3[id], mostrar table3[phase],
de lo contrario, si table4[id] existe en table2[id], mostrar table2[phase],
de lo contrario, si table4[id] existe en table1[id], mostrar table1[phase],
else blank()».
Hasta ahora, he hecho Distinct Union of table1[id], table2[id] y table3[id] para crear table4[id]. Luego estaba planeando hacer Switch con la función Contiene DAX para devolver true o false sobre si la tabla4[id] existe en la tabla1, tabla 2 o tabla 3 y luego mostrar su valor de fase correspondiente, sin embargo, vi que la función contiene solo puede funcionar dentro de una tabla especificada y no en todas las tablas.
¡Cualquier ayuda aquí sería muy apreciada! (El estado de destino es la tabla 4).
Hi, @shakir99
Puede agregar una columna calculada como:
Result =
SWITCH (
TRUE (),
Table4[ID] IN VALUES ( Table3[ID] ), MAX ( Table3[Phase] ),
Table4[ID] IN VALUES ( Table2[ID] ), MAX ( Table2[Phase] ),
Table4[ID] IN VALUES ( Table1[ID] ), MAX ( Table1[Phase] ),
BLANK ()
)
Saludos
Equipo de soporte de la comunidad _ Eason
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!