Forum Discussion

amanuit's avatar
amanuit
Regular Visitor
4 years ago
Solved

Conditional column and the value matching from different table.

I am trying to add a column and the value will depend on data from different sheets. Like i have imported two sheets 1 and 2.   and trying to add a column that if value of column A in sheet1 is ava...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi  amanuit ,

    I created some data:

    sheet1:

    sheet2:

    Here are the steps you can follow:

    1. Create calculated column.

    Column =
    IF(
        'sheet1'[column A] in SELECTCOLUMNS('sheet2',"column A",'sheet2'[coulmn A]),"YES","NO")

    2. Result:

    If you need pbix, please click here.

     

    Best Regards,

    Liu Yang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly