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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hola
Tengo 4 tablas de datos, cada una con una columna "EMAIL". Me gustaría crear una nueva tabla de las direcciones de correo electrónico únicas que se encuentran en todas las tablas. A continuación, utilice este EMAIL_TABLE como tabla JOIN.
¿Cómo se hace esto en PowerQuery?
ejemplo:
Tabla 1:
| EMAIL1 | TBL1_VAL0 | TBL1_VAL1 | TBL1_VAL2 |
| bob@bob.com | A | B | C |
Tabla 2:
| EMAIL2 | TBL2_VAL0 | TBL2_VAL1 | TBL2_VAL2 |
| sally@sally.com | X | Y | Z |
Tabla 3:
| EMAIL3 | TBL1_VAL0 | TBL1_VAL1 | TBL1_VAL2 |
| bill@bill.com | 1 | 2 | 3 |
Tabla 4:
| EMAIL4 | TBL1_VAL0 | TBL1_VAL1 | TBL1_VAL2 |
| bob@bob.com | Z | X | Y |
EMAIL_TABLE:
| EMAIL_DISTINCT |
| bob@bob.com |
| sally@sally.com |
| bill@bill.com |
Solved! Go to Solution.
En PowerQuery, podrías hacer algo como esto.
dejar
Fuente = List.Union({#"Table1"[Email1],#"Table2"[Email2],#"Table3"[Email3],#"Table4"[Email4]}),
#"Convertido a tabla" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error)
en
#"Convertido a tabla"
Gracias por los detalles. Sí, quiero hacer esto en Power Query. ¿Cómo sería eso?
En PowerQuery, podrías hacer algo como esto.
dejar
Fuente = List.Union({#"Table1"[Email1],#"Table2"[Email2],#"Table3"[Email3],#"Table4"[Email4]}),
#"Convertido a tabla" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error)
en
#"Convertido a tabla"
Serías capaz de usar algo como esto.
Tabla =
DISTINTO (
UNIÓN (
SELECTCOLUMNS (
'Tabla1',
"Correo electrónico", [Email1]
),
SELECTCOLUMNS (
'Tabla2',
"Correo electrónico", [Email2]
),
SELECTCOLUMNS (
'Mesa3',
"Correo electrónico", [Email3]
),
SELECTCOLUMNS (
'Tabla4',
"Correo electrónico", [Email4]
)
)
)
Sin embargo, este tipo de cosas se hacen mejor en Power Query.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.