Alteryx Designer Desktop Discussions

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

Multiple 0s redact

SP3000
8 - Asteroid

Hi,

 

I need to redact the multiple 0s in front of numbers in like mentioned in the below table, can someone please help with the best way to do it? 

 

NoDesired no
000001234512345
0000123123
000000123456789123456789
0012345671234567
3 REPLIES 3
Luke_C
17 - Castor

Hi @SP3000 

 

You can use the TrimLeft() Function:

 

trimleft([No],'0')
SP3000
8 - Asteroid

Wow, just like that ..thank you so much @Luke !! 

MarqueeCrew
20 - Arcturus
20 - Arcturus

@SP3000 ,

 

I completely agree with @Luke_C  on the trimleft() function.  If you want a "NUMBER" you can also convert ToNumber() the entry and that will remove all of the multiple zeros naturally.

 

Cheers,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels