Alteryx Designer Desktop Discussions

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

Suppress Zeros

cstafford
8 - Asteroid

Is their a tool in Alteryx that will suppress zeros before you output the data to a file?

6 REPLIES 6
mbarone
16 - Nebula
16 - Nebula

What do you mean by suppress?  Are you looking at zeros as values for particular columns and want to null them out?

MarqueeCrew
20 - Arcturus
20 - Arcturus

@cstafford,

 

If a TEXT field starts with leading zeros, you can:

 

TrimLeft([Field],"0")

That turns 0000123 into 123.

 

Cheers,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
cstafford
8 - Asteroid

I have a output file that includes store Id, article number, units on hand, units on order and if the total units (on-hand + on_order) equals zero, i do not want to show this line in the output.

mbarone
16 - Nebula
16 - Nebula

Sounds like a Filter Tool would do it.  You'd connect a Filter Tool right before your output, and filter on (no-hand + on_order) != 0 if you want to connect your Filter Tool to your Output Tool from the "T" node, or, equivalently, filter on (no-hand + on_order) == 0 if you want to connect your Filter Tool to your Output Tool from the "F" node.

cstafford
8 - Asteroid

Thanks, that was the answer.

mbarone
16 - Nebula
16 - Nebula
Glad to hear it!
Labels