0

I have two tables, firstone identifiants, which has id column as below : enter image description here

second table informations, which has information id column as below:

enter image description here  

I added a custom column check in identifiants table to check if id exists (TRUE) or not (FALSE) in information id column in informations tabe:

but it give me for all ids FALSE even some of them exists in information id.

please what's the solution for that?

1 Answer 1

1

try

=  Text.Contains(Text.Combine(informations[information id]," ") ,Text.From([id]))

EDIT

try

let CheckList=List.Combine(Table.AddColumn(informations, "Custom", each Text.SplitAny([information id],"/?!"))[Custom]),
...
#"Added Custom" = Table.AddColumn(#"PriorStepName", "Custom", each if List.Count(List.Select(CheckList, (cat) => Text.EndsWith( cat, [id] )))=0 then false else true)
Sign up to request clarification or add additional context in comments.

3 Comments

Excellent answer but it resolve only 50% of the problem, please have look to the edit post
I have an 352A5KL which it's a substring of other id 352A5KL75 So, to get TRUE the id 352A5KL must be alone ended by space or / or ? or ! or it's in the end of the cell. so id 352A5KL should be FALSE, because there is not cell in information id column that has this id.
Edited. Please stop changing requirements after posting question

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.