Forum Discussion
mr_oli
Helper I
6 years agoFull outer join with three tables
Hello! I need your help 🙂 I want to join three tables into one with full outer join but to be honest I do not know how. First I decided that I will join table 1 and table 2 and after ...
- 6 years ago
Hi, mr_oli
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
You may try creating a calculated table as below.
Table = ADDCOLUMNS( DISTINCT( UNION( DISTINCT(Table1[Column1]), DISTINCT(Table2[Column1]), DISTINCT(Table3[Column1]) ) ), "Column2", MAXX( FILTER( Table1, Table1[Column1]=EARLIER(Table1[Column1]) ), [Column2] ), "Column3", MAXX( FILTER( Table2, Table2[Column1]=EARLIER(Table1[Column1]) ), [Column3] ), "Column4", MAXX( FILTER( Table3, Table3[Column1]=EARLIER(Table1[Column1]) ), [Column4] ) )Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-alq-msft
Community Support
6 years agoHi, mr_oli
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
You may try creating a calculated table as below.
Table =
ADDCOLUMNS(
DISTINCT(
UNION(
DISTINCT(Table1[Column1]),
DISTINCT(Table2[Column1]),
DISTINCT(Table3[Column1])
)
),
"Column2",
MAXX(
FILTER(
Table1,
Table1[Column1]=EARLIER(Table1[Column1])
),
[Column2]
),
"Column3",
MAXX(
FILTER(
Table2,
Table2[Column1]=EARLIER(Table1[Column1])
),
[Column3]
),
"Column4",
MAXX(
FILTER(
Table3,
Table3[Column1]=EARLIER(Table1[Column1])
),
[Column4]
)
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.