Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Add a line break in a string

IMSL
7 - Meteor

Hi everyone,

I have a field with a value like this:

"here is an example for line 1 *| here is an example for line 2"

I need to use the "*|" as a sign to break the text in to a new line within the same record. Like this:

"here is an example for line 1

here is an example for line 2"

Can anyone help me with this?

5 REPLIES 5
binuacs
20 - Arcturus

@IMSL One way of doing this

image.png

IMSL
7 - Meteor

@binuacs Thanks for your reply. As I mentioned in my question, I want the results be in one record not in two records as in your solution.

Could you help me with that?

binuacs
20 - Arcturus

@IMSL try the formula

image.png

gawa
15 - Aurora
15 - Aurora

hi @IMSL 

 

You can use Summarize tool to concat strings, and specify \n as a separator. Attaching WF for your reference. 

image.png

image.png

Jayzonx
5 - Atom

Great solution @gawa. Thanks!

Labels