Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
ALTER.NEXT:

Join us on Dec 2 for a half-day virtual analytics + data science event!
US & CA customers only

SAVE YOUR SPOT
It's the most wonderful time of the year - Santalytics 2020 is here! This year, Santa's workshop needs the help of the Alteryx Community to help get back on track, so head over to the Group Hub for all the info to get started!
SOLVED

Add a column with a string value

Highlighted
Alteryx Partner

Newbie question.

 

I want to add a new column and for every row put one string value. For example, every row would have the value "Apple." How do I write this syntax in the Formula tool?

Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

Simply create the column with the formula tool and in the expression box type 'Apple'

 

Capture.PNG

Highlighted
8 - Asteroid

I have the same question, except the interface has changed and the solution shown generates an error.  I am using the Formula tool and getting the error -- "The field "" is not contained in the record. I also tried adding ToString('DUMMY').  Thanks in advance!

  error.png

Highlighted
8 - Asteroid

I figured out the problem was that I had not named the column.  Once I entered a name, it worked.

Highlighted
5 - Atom

To where did you enter the column name?  I am having the same problem that you were able to solve.

Highlighted
5 - Atom

Hi AMaletta

 

You may have figured this out already but in the interface you click the Select Column dropdown and click Add column, in the same space you can then type the name of the column

 

Add Column.pngType New Name Column.png

Highlighted
5 - Atom

WOW you guys are making my life so easy when this was spoken about 3 years ago - THANK YOU ALL!

Highlighted
8 - Asteroid

How to do the same thing in Formula In DB?

Highlighted
8 - Asteroid

@RAHULMISHRA 

In the Query include the line:

 'Apple' as "Fruit"

to create a column called Fruit with the value Apple inside of it for all the rows

Labels