The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

New column combining string and double

nogap2
メテオール

Hi we are trying to create a new field what will output a combination of text & the value in a numeric field.

Example:

 

New field:

"Record ID -" + [Record ID#]

 

you would see  Record ID - 12345

 

The only way we can figure out to do this (and not receive a data type error), is to change the [Record ID#] data to string to have this work.

We do not want to change the data type and then change it back.

 

Is there not an easier way?

 

2件の返信2
MSalvage
ボリード

@nogap2,

 

I think you are looking for the ToString Function in the formula tool. Something like:

 

New field:

"Record ID - " + ToString([Record ID#], 0)

 

Best,

MSalvage

 

Dynamomo
ボリード

You need to turn the number into a string if you are going to concatenate it with a string but you can do this on the fly.  Use the ToString() function

"RecordID -"+tostring([Record ID#]

 

ラベル
トップのソリューション投稿者