We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Filter Tool not working

isacaso18
7 - Meteor

I gathered the Max of two columns (by using the summarize tool) so they are called [Max_Total] and [Max_F9]. I want to use the filter tool for the information to filter through "T" if they match and "F" if they do not match.

 

I tried using the custom filter:

[Max_Total]=[Max_F9]

 

When the values match it filters it through the "F". I changed one of the values for them to mismatch and it filtered the mismatch values through "F". So it is filtering them both, whether they match or do not match through the "F".

 

I also tried this one:

[Max_Total]!=[Max_F9]

 

And it filters both matching and mismatching values through "T". 

 

I also tried with the 

IF [Max_Total]=[Max_F9] THEN "T" ELSE "F" ENDIF

and viceversa and it still does not work. Someone help!

11 REPLIES 11
ChrisTX
16 - Nebula
16 - Nebula

Can you post a workflow with sample data?

 

If you're trying to specify True or False in a Filter tool, use:

 

IF [Max_Total]=[Max_F9] THEN 1 ELSE 0 ENDIF

 

//1 = true

//0 = false

isacaso18
7 - Meteor

Hello I tried this and look

isacaso18_0-1645707299748.png

It is filtering it through "F" when it should be filtering through "T".

TheOC
16 - Nebula
16 - Nebula

hey @isacaso18 

I believe i have created the filter how you need it, however its slightly hard to understand the problem. Please have a look at my solution, and let me know if this works.

Thanks,
TheOC

Cheers,
TheOC
Connect with me:
LinkedIn Bulien
isacaso18
7 - Meteor

Hello,

it is still displaying it as False.

isacaso18_0-1645708881244.png

 

TheOC
16 - Nebula
16 - Nebula

Are both of your datatypes numeric / doubles?

Can you package a workflow with your data (or, just this row of data) so i can test with the exact same setup?

Cheers,
TheOC

Cheers,
TheOC
Connect with me:
LinkedIn Bulien
binuacs
21 - Polaris

@isacaso18 Try something like below and see the output

Trim([max_total] = Trim([max_f9]

 

isacaso18
7 - Meteor

isacaso18_0-1645709266992.png

I also tried adding the parenthesis at the end and it would not work.

Luke_C
17 - Castor
17 - Castor

Hi @isacaso18 

 

Add closing parenthesis.

 

Trim([max_total]) = Trim([max_f9])
patrick_digan
17 - Castor
17 - Castor

@isacaso18 Unfortunately, alteryx doesn't always show you the actual number that is saved behind the scenes. I suggested 5 years ago that they add an indicator to alert the user and show the actual number. https://community.alteryx.com/t5/Alteryx-Designer-Ideas/visual-indicator-actual-value-anytime-displa...

 

Off the top of my head, you might want to round both numbers Round(max_Total,.01) or take the abs of the difference and make sure that it's really small ABS(Field1-Field2)<.0000001

Labels
Top Solution Authors