Forum Discussion
CoronaAustralis
4 years agoFrequent Visitor
Return value if cell contains text in another column
Hi Experts, How to return value if cell contains any text in another column in the same table ? There are duplicates value in Group 1 & Group 2. Do not suggest split into two table and merge q...
- 4 years ago
Hi CoronaAustralis ,
Here two solutions.
In Power Query:Here the code:
= Table.AddColumn(#"Changed Type", "Custom", each if List.Contains(#"Changed Type"[Group 1] , [Group 2]) = true then "Yes" else null)
For reference:
In DAX:Here the code:
Return Value = IF ( CONTAINS ( Table9, Table9[Group 1], Table9[Group 2] ), "Yes", BLANK() )
For reference:
Hope this helps!
/Tom
tackytechtom
Most Valuable Professional
4 years agoCoronaAustralis
4 years agoFrequent Visitor
I am able to fix the issues however it took quite long time to run a query of 8000 line items in excel.