Forum Discussion
kcantor
9 years agoCommunity Champion
PowerQuery Contains
I have two tables that have a part number field. Is there a way in Power Query to see if Table1[VendorItem] contains the text found in Table2[Part#] ? They would not be exact matches so a merge is o...
- 9 years ago
Anonymous send me a wonderful little snippet of Dax for a table. It was a thing of beauty and worked beautifully.
new table = GENERATE( Table1, FILTER( Table2, NOT( ISERROR( FIND( Table2[PART#], Table1[Vendor Item] ) ) ) ) )
blopez11
9 years agoSuper User
I think you would want to go with a calculated column
I'm not sure if there would be multiple matches in your data set during the lookup but you can take a look at the following as it may apply to your case
Hope this helps
kcantor
9 years agoCommunity Champion
Anonymous send me a wonderful little snippet of Dax for a table. It was a thing of beauty and worked beautifully.
new table = GENERATE( Table1, FILTER( Table2, NOT( ISERROR( FIND( Table2[PART#], Table1[Vendor Item] ) ) ) ) )
- blopez119 years agoSuper User
Awesome, I'll bookmark this for future reference
Thanks for sharing
- v-haibl-msft9 years agoMicrosoft Employee
An excellent solution. You could mark your answer as solution to close this thread and help others to know the right answer.
Best Regards,
Herbert