Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

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
21 - Polaris

@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
21 - Polaris

@IMSL try the formula

image.png

gawa
16 - Nebula
16 - Nebula

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
Top Solution Authors