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

How to Replace left most zero with space and do not disturb other zeros

pgayath1
8 - Asteroid

My requirement is:

 

 

replace the left most zero with space and retain other zero(s).

 

Example:

 

'0001' or '0000'

 

should be represented as

 

'001' or '000'

 

Please assist to identify a better solution

1 REPLY 1
markcurry
12 - Quasar

This should do it...

RIGHT([Numbers], Length([Numbers]) -1 )

 

Or if you want to make sure the first digit is 0, then this...

 

IF Left([Numbers], 1) = "0" THEN
        RIGHT([Numbers], Length([Numbers]) -1 )
ELSE
        [Numbers]
ENDIF

Labels
Top Solution Authors