Alteryx Designer Desktop Discussions

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

need help n custom filter tool

anonymous008_G
8 - Asteroid

Hi there,

 

I need help in customize filtering with the below sample data. i want to write syntax which would look for HARD in sector column and whenever it finds then filter out HARD, EMG, LONG and SHORT records which comes very first after HARD value. 

 

Input:-

SECTORGROSSNET
HARD11
ABC22
EDS33
PASD44
MNABH55
UST66
EMG77
PAST88
LONG99
PAOSI1010
SHORT1111

 

Output:-

SECTORGROSSNET
HARD11
EMG77
LONG99
SHORT1111
6 REPLIES 6
aatalai
14 - Magnetar

@anonymous008_G check this workflow it should do the trick

anonymous008_G
8 - Asteroid

Hi @aatalai -- this shouldn't work unfortunately. Can we filter out data in alteryx instructing that start filtering out the data from when you find word as "Derivative" and then stop filtering when you find word "LONG"? that means ignore prior records of derivatives and ignore after records from LONG
Can we do that?

aatalai
14 - Magnetar

@anonymous008_G yes can you give a list of what you are expecting, i.e including derivatives 

anonymous008_G
8 - Asteroid

Hi @aatalai -- below sample data where i want to filter the data from word derivative till word SHORT. I am looking for steps which has direct reference to the data but rather i need conditional statement. since in actual sector contains lot of data with repetitive same sectors words.

Input:-

SECTORGROSSNET
ABC11
EFG22
Derivatives33
FX-144
FX-255
FX-366
FX-477
LONG88
FX-199
SHORT1010
FX-31111
MNO1212
PRS1313
QWS1414
XYZ1515

 

Output:- 

SECTORGROSSNET
Derivatives33
FX-144
FX-255
FX-366
FX-477
LONG88
FX-199
SHORT1010
FX-31111
aatalai
14 - Magnetar

@anonymous008_G take a look at this, though it doesn't include Fx-3 as that is after Short

 

Let me know if this does the trick

anonymous008_G
8 - Asteroid

@aatalai thank you, this may works.

Labels