Skip to main content
Solved

Concatenate fields with comma but exclude if a field is empty

  • February 13, 2024
  • 2 replies
  • 119 views

chris_acc
Contributor
Forum|alt.badge.img+5

Hello,

I am using the String Concatenator to join two fields and separate them with a comma.

However some fields are blank so I end up with some records that contain a comma only and others that contain a comma and then the value of one of the fields.

My current setup looks like below

generally works well, except for some results like these

Is it possible to modify existing Transformer or is a different one more suitable?

My only other thought is to perform some sort of trim on an other transformer after this one to remove first character?

Thank you

Best answer by nielsgerrits

Yes. I think I could solve this using the AttributeTrimmer.

View original
Did this help you find an answer to your question?

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+54
  • Best Answer
  • February 13, 2024

Yes. I think I could solve this using the AttributeTrimmer.


chris_acc
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • February 13, 2024

It seems to work 😊

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings