Forum Discussion
cerebro
3 years agoHelper I
Check if column text contains values from another column and return the text
Dear everybody, I have two different sources and i would like to search for the project number from the second source in the account from the first source and return the project in the custom col...
- 3 years ago
Hi cerebro
Yes, you can use Text.BetweenDelimiters to extract just the 4 digits between the - -
= Text.Select(Text.BetweenDelimiters([Account], "-", "-"), {"0".."9"})Regards
Phil
Anonymous
3 years agoNot applicable
Hi cerebro ,
Please try like:
= Table.AddColumn(#"Changed Type", "ProjectNumber", each Table.SelectRows(Source2,(x)=>Text.Contains([Account],x[Project]))[Project]{0})
and then repalce error.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
cerebro
3 years agoHelper I
thanks a lot, your formula works (but only without the {0}).
I have 200-300 k lines and power query takes a while to finish it, but it works 😊