Forum Discussion
How to merge two tables based on a partial match
- 6 years ago
Hi Alicia_Anderson ,
my code included the small letter L "l" and not 1.
The reason for your error message is that you used a number instead.
So either replacing it with any character or a string like Jimmy801 mentioned should solve the problem.
BTW: It might be more suitable for your use case to use the "Text.StartWith"- function instead of the "Text.Contains"-function.
this is not clear to me. See the 2 issues below:
My apologies. I altered the data examples at the last minute and did not reference the correct CID.
"ABCD 11.6" should have matched to "ABCD 11"
"XYZ 17.1 CU2" should have matched to "XYZ 17.1"
- ImkeF6 years agoCommunity Champion
Thanks, appreciated.
Please add a column with the following formula:
List.First( List.Select( List.Buffer( Table.Buffer( Table.Sort(#"Release CID Table", {{"Length", Order.Descending}}) ) [Release CID Table] ), (l) => Text.Contains( [Release Table], l)) )- ImkeF6 years agoCommunity Champion
… or you can sort the lookup table before, see attached file