Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask 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 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