Free Trial

Alteryx Designer Desktop Discussions

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

Adding '_' to the beginning of all values in a column

JDaviesInch
5 - Atom

Hi,

 

I am trying to add an underscore (_) to the beginning of each cell within a column.

 

For example :-

 

1_Series becomes _1_Series

 

I can't use the Padleft function as each cell will have a different number of characters.

 

Thanks in advance

2 REPLIES 2
atcodedog05
22 - Nova
22 - Nova

Hi @JDaviesInch 

 

You can easily get this by using formula "_"+[Column]

 

Hope this helps 🙂

Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @JDaviesInch,

 

There are two ways to approach this, depending whether or not you want to add the underscore to the beginning of more than one column.

 

One column approach using a formula tool to amend the value: Using this approach you'd select the individual field you wanted to update

 

'_' + [Column A]

 

 

 Multiple column approach using a multi-field formula tool to amend values: Using this approach you can tick the fields you want to update

 

'_' + ToString([_CurrentField_])

 

 

I've attached my workflow for you to download if needed with both approaches!

 

Kind regards,

Jonathan

Labels
Top Solution Authors