I have 2 tables, table1
contains some survey data and table2
is a full list of students involved. I want to check if Name
in table2
is also found in table1
. If yes, add Age
and Level
information in table2
, otherwise, fill these columns with no data
.
table1:
id Name Age Level
32 Anne 13 Secondary school
35 Jimmy 5 Primary school
38 Becky 10 Primary school
40 Anne 13 Secondary school
table2:
id Name
1 Anne
2 Jimmy
3 Becky
4 Jack
Expected output:
id Name Age Level
1 Anne 13 Secondary school
2 Jimmy 5 Primary school
3 Becky 10 Primary school
4 Jack no data no data
Update:
I created a relationship between table1
and table2
using the common column id
(which can be repeated in table1
).
Then I used:
Column = RELATED(table1[AGE])
but it caught error:
The column 'table1[AGE]' either doesn't exist or doesn't have a relationship to any table available in the current context.
Name
please because names are common between those two tables not theID
column – user8078111