Alteryx Designer Desktop Discussions

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

Capturing an specific value in your data

ll98
9 - Comet

I'm looking just to write a formula where I can capture just the salaries that end in .50.   

 

 

EmployeesSalaries
Lenn7800.50
Bob7800.51
Smith5000.50
Taylor500.49
5 REPLIES 5
AngelosPachis
16 - Nebula

Hi @ll98 ,

 

A not very elegant way to go about it would be to round the salaries and then estimate the difference between the rounded value and the original one.

 

If that's equal to 0.5, then you want to capture that record, so that will fall out of the True output anchor

 

AngelosPachis_1-1612893667983.png

 

 

Let me know if that worked for you.

 

Regards,

 

Angelos

 

messi007
15 - Aurora
15 - Aurora

@ll98,

 

As it's a number I have done a simple workflow to keep values with .5

Below the workflow, hope this helps:

 

messi007_0-1612893985586.png

Regards,

ll98
9 - Comet

Thanks .. and if I have other columns with the same criteria.... 

AngelosPachis
16 - Nebula

@ll98 

 

It depends on how you want your output to look like. The simplest answer is to bring everything into a single column (through transpose) then  apply the formula/filter and then cross-tab to bring the table to it original form. The values in the same record which don't meet the criteria will be null.

SeanAdams
17 - Castor
17 - Castor

a quicker way is to convert to string, and look for "0.50" on the end of the string.

A filter tool with the formula left([Salaries],3) = '.50'

 
Labels