Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi:
I have two tables and I want to create columns of them:
Table A:
phone_number address
123 abc
124 asd
156 aer
Table B:
phone_number name
123 frank
124 Tim
188 Jim
Basiclly I have table B and I'm trying to find the people's address on table A based on his phone number, the address might not there.
The result I want:
Table C:
name phone_number address
frank 123 abc
Tim 124 asd
Thanks
Solved! Go to Solution.
Hi @franktby,
We can merge table A and table B in Power query as the picture below.
Here is the M code in Advanced Editor for your reference.
let Source = Table.NestedJoin(TableA,{"phone_numbe"},TableB,{"phone_numbe"},"TableB",JoinKind.LeftOuter), #"Expanded TableB" = Table.ExpandTableColumn(Source, "TableB", {"name"}, {"TableB.name"}), #"Filtered Rows" = Table.SelectRows(#"Expanded TableB", each ([TableB.name] <> null)) in #"Filtered Rows"
Also please find the file attached.
Regards,
Frank
Hi @franktby,
We can merge table A and table B in Power query as the picture below.
Here is the M code in Advanced Editor for your reference.
let Source = Table.NestedJoin(TableA,{"phone_numbe"},TableB,{"phone_numbe"},"TableB",JoinKind.LeftOuter), #"Expanded TableB" = Table.ExpandTableColumn(Source, "TableB", {"name"}, {"TableB.name"}), #"Filtered Rows" = Table.SelectRows(#"Expanded TableB", each ([TableB.name] <> null)) in #"Filtered Rows"
Also please find the file attached.
Regards,
Frank
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |