Forum Discussion
Trying to look up from another table based on array
- 1 year ago
hi Larry_USPS ,
try with SEARCH instead like:
match2 = IF( COUNTROWS( FILTER( table2, SEARCH(table2[words], Table1[paragraphs], 1, 0)>0 ) )>0, "Yes", "No" )SEARCH shall work in Power Pivot and i verified the code in Power BI:
hi Larry_USPS ,
try to write a calculated column in table1 like:
match =
IF(
COUNTROWS(
FILTER(
table2,
CONTAINSSTRING(table1[paragraphs], table2[words])
)>0,
"Yes", "No"
)
Thanks Again, got an arror with the command "containsstring". Tried Contains(Strings) that didnt work either. THoughts? thanks again
- FreemanZ1 year ago
Super User
hi Larry_USPS ,
indeed there are some typo, please try this:
match = IF( COUNTROWS( FILTER( table2, CONTAINSSTRING(Table1[paragraphs], table2[words]) ) )>0, "Yes", "No" )it worked like:
- Larry_USPS1 year agoNew Member
Thanks for hanging with me and helping.. I think I found my issue, I am doing this in PowerPivot, not PowerBI, this the ContainsString isnt recoginized. Is there a way to do this within PowerPivot DAX commands ?
Thanks again
Larry
- FreemanZ1 year ago
Super User
hi Larry_USPS ,
try with SEARCH instead like:
match2 = IF( COUNTROWS( FILTER( table2, SEARCH(table2[words], Table1[paragraphs], 1, 0)>0 ) )>0, "Yes", "No" )SEARCH shall work in Power Pivot and i verified the code in Power BI: