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
4 years agoMost Valuable Professional
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
CoronaAustralis
4 years agoFrequent Visitor
I have this error message in power query "Expression.Error: A cyclic reference was encountered during evaluation"