[How to] Remove String

More
1 year 7 months ago #24802 by prashant
I have a

1. field pokey containing 2024-2025-f-1216/001-f000004784-tan
2. field colour contains TAN

I wish to create field with  2024-2025-f-1216/001-f000004784

1. Basically lowercase #color -. This is possible
2. Concat - and collar - This is possible
3. Subtract or remove instance of -tan from pokey , is this possible ?
The following user(s) said Thank You: admin

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

More
1 year 7 months ago #24806 by admin
Replied by admin on topic [How to] Remove String
There are multiple ways of doing things as usual

You can use "Ensure No Suffi"x
www.etl-tools.com/wiki/advanced-etl-proc...gs/ensure-no-suffix/

or "Replace" 
www.etl-tools.com/wiki/advanced-etl-proc...ons/strings/replace/

Mike
ETL Architect

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

More
1 year 7 months ago #24808 by prashant
Replied by prashant on topic [How to] Remove String
But the value of color is dynamic , coming from a field.
The following user(s) said Thank You: admin

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

More
1 year 7 months ago #24810 by admin
Replied by admin on topic [How to] Remove String
At the moment I think the Calculation Transformation is the only option.

We might add a separate transformation for it in the future.

Mike
ETL Architect

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

More
1 year 7 months ago #24813 by prashant
Replied by prashant on topic [How to] Remove String
I love the usage of python/pascal in atypical scenarios such as above !!

Thank you so much for including them both  
The following user(s) said Thank You: admin

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

More
1 year 7 months ago #24816 by prashant
Replied by prashant on topic [How to] Remove String
For anyone in future going through this post ,the python calculation which works is 


Result.value = [F001].replace([F002], "")
 

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