Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Trim Left Numbers

jatienza
8 - Asteroid

Hi,

 

Need help in trimming the data below. Column "add1" should be trimmed left by the numbers specified in "add2" so the result should be the "output" column.

 

add1add2output
118118002118118002
3332057664033320576640
2721979498427219794984
45426082404542608240
23020200802302020080

 

thanks,

Jaime

2 REPLIES 2
DataNath
17 - Castor
17 - Castor

Hey @jatienza, here's one way you could go about doing this - using the ToString() functions to temporarily convert the fields into a string data type so you can use the right functions on them. I've provided 2 output fields here as you'll need to wrap the result in ToNumber() if you want the outcome to be numeric, like in the second expression:

 

DataNath_0-1680640832293.png

jatienza
8 - Asteroid

@DataNath thanks, it's working...

Labels
Top Solution Authors