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.
RESUELTAS

Conversion of String to Negative

Akeelah
Meteoro

Hi,
I am trying to convert the following strings ( -34,-45,-76) to integer
The select tool is showing error "-34 is not recognized"

 

And I tried to replace "-"

 

IF Contains([Min Temp1], "-") THEN
Replace([Min Temp1],"-",' ')

ELSE ([Min Temp1])

ENDIF

 

 

Output = ?34 , ?45.....

4 RESPUESTAS 4
ChrisTX
16 - Nebula
16 - Nebula

You mentioned "strings".  Is the text     -34,-45,-76     all in one column, one row?

 

Or is the data in separate rows in your data source, like

    Min Temp1

     -34

     -45

    -76

 

?

 

aatalai
Aurora

@Akeelah does the attached workflow help?

RobertOdera
Púlsar

Hi, @Akeelah 

 

Try the below, cheers.

 

For_Akeelah.png

Raj
Nebula

@Akeelah 
REGEX_Replace([Field1],"-","")

this should solve the issue

Etiquetas
Autores con mayor cantidad de soluciones