Alteryx Designer Desktop Discussions

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

alteryx adding number

ryanzhang487
8 - Asteroid

Hi community, I have a column like this showing in the picture, i would want a formula to add 1 to the right side of the " - " (eg, 5-9 will be 5-10, 1-2 will be 1-3),

how do I do that please?

Thank you 

 

 

 

alteryx question.png

1 REPLY 1
binuacs
20 - Arcturus

@ryanzhang487 One way of doing this with the formula tool

 

 

SubString([Temp],0,FindString([Temp], '-'))+'-'+toString(toNumber(SubString([Temp],FindString([Temp], '-')+1,Length([Temp])))+1)

 

 

 

binuacs_0-1678388039466.png

 

 

Labels