Forum Discussion
Conditional column based on if a record exists in another table
- Anonymous3 years ago
Hi WBADAM03 ,
I created some dummy data for reference.
Table (1) has the student's names, Table (2) has the students' grades, and if the student in Table (1) has no grades in Table (2), then NA is returned.
Then you can create the following column to solve it.
Column = IF( 'Table (1)'[Student] in SELECTCOLUMNS('Table (2)',"Student",[Student]),"Y","NA")Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi WBADAM03 ,
I created some dummy data for reference.
Table (1) has the student's names, Table (2) has the students' grades, and if the student in Table (1) has no grades in Table (2), then NA is returned.
Then you can create the following column to solve it.
Column =
IF(
'Table (1)'[Student] in SELECTCOLUMNS('Table (2)',"Student",[Student]),"Y","NA")
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.