Forum Discussion
afkl99
8 years agoFrequent Visitor
Difference between two text columns
I have two text columns (column A in data table A and column B in data table B -both data tables have id columns). I want to create a table\matrix in the desktop page that contains an id column,...
- 8 years ago
Since you want a calculated column, use below.
A and B = IF(LOOKUPVALUE(TableB[TextA],TableA[TextA],TableB[TextA])=TableB[TextA],"Yes","No")
dilumd
8 years agoImpactful Individual
You can relate table A and B first. Then write a IF function to return "yes" if column A1 = column B1 I don't think you need to merge.
- afkl998 years agoFrequent Visitor
Thank you!
When trying to implement the following statement:
IF( EXACT( 'Table A'[A1]), 'Table B'[B1])), "yes", "no")
I get the error: A single value for column 'A1' in table 'Table A' cannot be determined. (for both tables)
It is my understanding that I need to add something in the statement so that column A1 and B1 are only compared when the id column in both tables are equal. Is this correct and how would I go about doing this?
- dilumd8 years agoImpactful Individual
Since you want a calculated column, use below.
A and B = IF(LOOKUPVALUE(TableB[TextA],TableA[TextA],TableB[TextA])=TableB[TextA],"Yes","No")
- Briosjuly775 years agoFrequent Visitor
Hi
I get errors when using the same DAX
may I know how to edit?