We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to concatenate and remove a decimal point and extra 0’s

Dittau
8 - Asteroid

Hello,

 

I’m using the formula to concatenate items (simple plus function in formula). I have a number like 18392.0000 and i need to remove the ‘.0000’ out of the number before I concatenate with other items. How do i do that?

7 REPLIES 7
martinding
13 - Pulsar

Hi @Dittau,

 

The easiest way is to change the number to an Integer type before concatenating using the + sign and then simply ToString(you number) + other items.

 

Dittau
8 - Asteroid

What tool do i use for that or how do i do that?

flying008
15 - Aurora

Hi, @Dittau 

 

ToString(18392.0000)
Dittau
8 - Asteroid

That’s not what i’m looking for. Let me give a better example

 

column- drinks

column- food

column-price

 

drinks             Food               Price

soda               Chicken           6527.0000

Water               Pork                372.0000

 

how do i concatenate soda + chicken + only the 6527 (get rid of .0000) in the formula tool?

 

definitely need to use brackets as there is multiple tows of data so keep that in mind please

Luke_C
17 - Castor
17 - Castor

Hi @Dittau 

 

Like others have said, change the data type to numeric and then use a ToString() when you're concatenating:

Luke_C_0-1680139110149.png

 

Dittau
8 - Asteroid

how do you change the data type- I’ve seen it before but can’t remember what tool that is.

Luke_C
17 - Castor
17 - Castor

@Dittau I shared the workflow - it's in the select tool:

Luke_C_0-1680139394755.png

 

Labels
Top Solution Authors