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.
Having problems to understand that logic: How about those other duplicates then?
ABCD 11.1.5 does not exist in CID Release table.
ABCD 11.1 does not exist in CID Release table.
ABCD 11 DOES exist in CID Release table. (MATCH)
ABCD 11.2 does not exist in CID Release table.
ABCD 11 DOES exist in CID Release table. (MATCH)
ABCD 11.4.0 does not exist in CID Release table.
ABCD 11.4 does not exist in CID Release table.
ABCD 11 DOES exist in CID Release table. (MATCH)
- ImkeF6 years agoCommunity Champion
this is not clear to me. See the 2 issues below:
- Alicia_Anderson6 years agoResolver I
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)) )