Forum Discussion
amanuit
4 years agoRegular Visitor
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...
- 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
Anonymous
4 years agoNot applicable
Hi amanuit ,
One of your Values is of Type Text and the other value is of Integer, and you need to convert it to the same type so that you can compare.
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.