Cast your vote for the official 2025 Inspire Pin! Designs were submitted by fellow Community members and reflect the creativity and passion of Alteryx users across the globe. Vote now!

Alteryx Designer Desktop Discussions

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

Dynamic Formula to remove zeros from a specific column

calvincarr29
8 - Asteroid

In Asset ID (Tax) column, zeros keep populating in front of the Asset ID which is throwing off a join tool that I have.

 

How do I write a formula that automatically gets rid of zeros in front of a number (integer)?

 

 

 

Screenshot 2024-12-12 100008.png

 

4 REPLIES 4
alexnajm
18 - Pollux
18 - Pollux

If it was stored as a number, it wouldn't have those leading zeroes!

 

The function you would use is TRIMLEFT - TrimLeft([Asset ID (Tax)], "0")

calvincarr29
8 - Asteroid

It's stored as a number 

calvincarr29
8 - Asteroid

Is there a way to do it regardless of data type?

alexnajm
18 - Pollux
18 - Pollux

Please show me that it is being stored as a number - I believe what you are saying is impossible and I would like to see. But if you are needing the formula to work with numeric data for some reason, you can add ToString: TrimLeft(ToString([Asset ID (Tax)]), "0")

Labels
Top Solution Authors