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!

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels