The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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" )
User | Count |
---|---|
69 | |
68 | |
65 | |
54 | |
28 |
User | Count |
---|---|
112 | |
82 | |
65 | |
48 | |
43 |