Forum Discussion
Anonymous
6 years agoNot applicable
Error with LOOKUPVALUE
Hello
I want to create a calculated column where the value of Col1 exists in Col2.
I wrote this calculated column but it does not work:
Column = IF(LOOKUPVALUE(Table1[Col2],Table1[Col2],Table1[Col1])="","Not present")
Any advice?
3 Replies
- amitchandak
Super User
Anonymous , Try like
if(countx(filter(Table, [col1] = earlier([col2])),[col1])>0,"Present","Not present")
- Fowmy
Super User
Hi,
The data is in the same table, could you share a screenshot of it? - v-lili6-msft
Community Support
HI Anonymous
For your case, try this simple formula
Column 2 = IF(Table1[Col1] IN VALUES(Table1[Col2]),"present","Not present")Result:
Regards,
Lin