The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
How do I search through each row in Table1, with ALL the values from Table2?
Table1 | |
Values | Found |
A B C D | Yes |
E F G H O | Yes |
I J K L | No |
M N O P | Yes |
Table2 |
Values |
C |
F |
O |
The Found column is "Yes" if any 1 value from Table2 returns True. I've tried SEARCH() and CONTAINS() but no luck.
Solved! Go to Solution.
Try this Calculated Column
Found = IF ( CALCULATE ( COUNTROWS ( Table2 ), FILTER ( Table2, FIND ( Table2[Values], Table1[Values],, 0 ) > 1 ) ) > 0, "Yes", "No" )
Try this Calculated Column
Found = IF ( CALCULATE ( COUNTROWS ( Table2 ), FILTER ( Table2, FIND ( Table2[Values], Table1[Values],, 0 ) > 1 ) ) > 0, "Yes", "No" )