Hello @Anonymous
you can join both tables, and then expand the needed data.
Here an example.
Step Table1 and Table2 are only to simulate your list of tables
let
Table1 =
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUUosTgGSBnpmYNLIGEyZGoIpYyjPTClWJ1rJCE21o7MbkHRydgSSbu6eQNLH1w+s0hhNpSEU55Xm5ICZIEUggfSMTLAiiHWGEMoIQplALLdEWI6s2sXZF0R6eAHJkCB/IBkQGAS3HFklTsszsnMg9hHlc2TVjkEBQDLMCeRzdzeQz8MDXeGWI6vEtDwWAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [A = _t, B = _t, C = _t, R1 = _t, R2 = _t, R3 = _t, R4 = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"A", Int64.Type}, {"B", type text}, {"C", Int64.Type}, {"R1", type text}, {"R2", type text}, {"R3", type text}, {"R4", type text}})
in
#"Changed Type",
Table2 =
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("bY/BCsIwEET/JecipkmrOQZSPRiNNopI6EEQrFi8iP/vZhfTUDz0DYRHZycExlnBru8bcD6rkbLCKCk4xxA164rAyoltvAauzBrYNi3QnnZoiokZf/P6DMMYHL34fu8f1IVUFFLQG4WSqT+3z40BHi5HoNcu9ut96s/N/MMDfuX9c6C91KowFks6nE6pxvG5vdU428XZG22BzvpUnpt/x3df", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [A = _t, B = _t, C = _t, R5 = _t, R6 = _t, R7 = _t, R8 = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"A", Int64.Type}, {"B", type text}, {"C", Int64.Type}, {"R5", type text}, {"R6", type text}, {"R7", type text}, {"R8", type text}})
in
#"Changed Type",
CreateYourList = {Table1, Table2},
JoinTables = Table.NestedJoin
(
CreateYourList{0},
{"A","B","C"},
CreateYourList{1},
{"A","B","C"},
"Table2"
),
#"Expanded Table2" = Table.ExpandTableColumn(JoinTables, "Table2", {"R5", "R6", "R7", "R8"}, {"R5", "R6", "R7", "R8"})
in
#"Expanded Table2"
Copy paste this code to the advanced editor in a new blank query to see how the solution works.
If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy