"Contains" or Partial Match lookup

More
2 years 2 months ago - 2 years 2 months ago #23720 by prashant
Hellos,

I have a field which contains tonnes of Raw Material items such as 

7 Ply 4X4 Carton
36" Polybag
39" Polybag
Cow leather

I had like to categorise these items using a lookup table (excel/csv) , where I have can write down

Contains | Category
Carton  | Packaging
Polybag | Packaging
Cow | Raw Material
Sheet | Raw Material
  • I believe this can be done using SQL lookup using LIKE , but that I am sure Team ETL will say is the slowest and should be avoided . 
  • Maybe ,  this can also be done using Calculations , if I can read the content of a file & match , but Team ETL will say it's second slowest
  • List can detailed with around 250+ items

 
Last edit: 2 years 2 months ago by prashant.
The following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

More
2 years 2 months ago #23723 by admin
250+ is a lot of items. 

I think the best option is to create a separate transformation for it 

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
2 years 2 months ago #23724 by prashant
Even if I create a transformation , how do I go about doing this?

Please Log in or Create an account to join the conversation.

More
2 years 2 months ago #23728 by admin
I mean we will create a new transformation function for you 

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
2 years 2 months ago #23729 by prashant

Please Log in or Create an account to join the conversation.

More
2 years 2 months ago #23730 by admin
FYI We have added two new transformations functions to the latest release

27/04/2024 6.4.2.34

 + Added: "Lookup RegEx" and "Lookup Contains" transformation functions   

www.etl-tools.com/wiki/advanced-etl-proc...ookups/lookup-regex/

www.etl-tools.com/wiki/advanced-etl-proc...ups/lookup-contains/
 

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save