Skip to main content
Solved

Removing keyword based on the value of another column

  • July 25, 2022
  • 3 replies
  • 30 views

calvin.fme
Contributor
Forum|alt.badge.img+2

Hi all,

 

I am trying to remove some keywords based on the value of another column.

 image 

What I am hoping to achieve:

Removing Oxley & Victoria in Column A

 

Can anyone please provide some assistance.

 

Thanks

Best answer by gav

Hi @calvin.fme​  - If you know the formatting will be consistent (for example, only 1 space after the value in Column B), you can use a StringReplacer and set the Attribute to "Column A", Mode to "Replace Text" and Text To Replace to "@Value(B) " (Don't forget the space). Screenshot below.

 

StringReplacer - Replace Text

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

gav
Contributor
Forum|alt.badge.img+10
  • Contributor
  • 11 replies
  • Best Answer
  • July 25, 2022

Hi @calvin.fme​  - If you know the formatting will be consistent (for example, only 1 space after the value in Column B), you can use a StringReplacer and set the Attribute to "Column A", Mode to "Replace Text" and Text To Replace to "@Value(B) " (Don't forget the space). Screenshot below.

 

StringReplacer - Replace Text


calvin.fme
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • 4 replies
  • July 25, 2022

Thank you so much @gav​. It worked!  


gav
Contributor
Forum|alt.badge.img+10
  • Contributor
  • 11 replies
  • July 25, 2022

Rock on!