Forum Discussion
Conditional column and the value matching from different table.
- Anonymous4 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
amanuit , If you want to check if the value is there in another table or not
A new column in table 1
= var _cnt = countx(filter(Table2, Table2[A] = Table1[A]) , Table2[A])
return
if(isblank(_cnt), false() , true())
refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8
Hello Amit, Thank you for reply.
I am not able to enter table1. when i try to select table 2, it is not showing in dropdown
I am getting error that column Table1[A] either does not exist or doesnot have a relationship to any table available in the current context.
I also tried to create relationship between two table, many to many. I think some issue in relationship, not able to resolve, can you please help me