Forum Discussion
astano05
Helper III
4 years agoReturn Found Value in another Table
I have a list of "Keywords" (1 column table) that I'm using to find matches in a separate table on a free text field. The two tables do not have a relationship. I created the below column, which ...
- 4 years ago
Hi astano05 ,
Please try the following measure:
Keyword Search Return Name = VAR tab = ADDCOLUMNS ( CROSSJOIN ( VALUES ( DataNew[Name] ), VALUES ( Keywords[Keyword] ) ), "find", SEARCH ( [Keyword], [Name], 1, 0 ) ) RETURN MAXX ( FILTER ( tab, [find] > 0 ), [Keyword] )If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-kkf-msft
Community Support
4 years agoHi astano05 ,
Please try the following measure:
Keyword Search Return Name =
VAR tab =
ADDCOLUMNS (
CROSSJOIN ( VALUES ( DataNew[Name] ), VALUES ( Keywords[Keyword] ) ),
"find", SEARCH ( [Keyword], [Name], 1, 0 )
)
RETURN
MAXX ( FILTER ( tab, [find] > 0 ), [Keyword] )
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
astano05
Helper III
4 years agoThis works perfectly! thank you