Alteryx Designer Desktop Discussions

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

Custom Filter for multiple fields

jboschee
8 - Asteroid

Hi everyone,

 

I'm trying to create a filter that removes all zero's across 3 fields if all 3 fields are zero.

 

Here is the formula I currently have in the filter.  It works, but it will also take 1,000.00 as well as 0.00.  I need it to be only 0.00.

 

 [X] AND [Y] AND [Z] != "0.00"

 

Thanks in advance!

6 REPLIES 6
MarqueeCrew
20 - Arcturus
20 - Arcturus

How about ...

 

[x] = 0
AND
[z] = 0
AND
[y] = 0

Cheers,

Mark

Alteryx ACE & Top Community Contributor

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

Data is V_String so I get an Invalid type in operator error.

MarqueeCrew
20 - Arcturus
20 - Arcturus

ToNumber([x]) = 0 AND

ToNumber([y]) = 0 AND

ToNumber([z]) = 0

Alteryx ACE & Top Community Contributor

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

That worked but resulted in a few conversion errors to TONUMBER x,xxx,xxx stopped converting at a comma.  It might be invalid.

Nate1
8 - Asteroid

The "AND" isn't working as you think in the original formula. The [X] AND [Y] isn't doing anything. You need to add the condition to this statements to make them actually filter.  [X] != "0.00" AND [Y] != "0.00" AND [Z] != "0.00" should work.

 

Or to expand on the work Mark did you need to replace the commas. 

 

ToNumber(replace(X],",","")) = 0 AND

ToNumber(replace([Y],",","")) = 0 AND

ToNumber(replace([Z],",","")) = 0

jboschee
8 - Asteroid

Thanks Nate!

 

ToNumber(replace(X],",","")) = 0 AND

ToNumber(replace([Y],",","")) = 0 AND

ToNumber(replace([Z],",","")) = 0

 

Is what I ended up using.

Labels