I've tried to utilize ChatGPT and Google Gemini but the results just aren't what I'm looking for. I'm close, but just not sure how to tweak the formula to resolve my issue.
I have two tables: T1 and T2. In T2 I have a list of "cleaned" item numbers. In T1 I have a list of item numbers with additional characters - the number of characters will vary - before and/or after the item number. I want to use PQ to look in T2 to see if any of the results match what exists in T1 and add a column with that information if there is a match. Here's an example:
The result the engines give me is:
This results in an error saying that the data is not in a list format. I believe the issue is related to the List.Count and List.Intersect functions but I'm not sure how to correct. Any suggestions on how I can resolve this?
I have two tables: T1 and T2. In T2 I have a list of "cleaned" item numbers. In T1 I have a list of item numbers with additional characters - the number of characters will vary - before and/or after the item number. I want to use PQ to look in T2 to see if any of the results match what exists in T1 and add a column with that information if there is a match. Here's an example:
The result the engines give me is:
Excel Formula:
= List.Count(List.Intersect(Text.ToList([ItemNumber]), Text.ToList(Text.Combine(T2[CleanedItemNumber])))) > 0