Free Trial

Alteryx Designer Desktop Discussions

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

Filter Using a List

valeriemattas
8 - Asteroid

Hello,

 

Is it possible to filter a field dynamically using a list (either a text input list or an input file) without using a macro?

 

Grateful for guidance!

 

Thanks,

 

Valerie

7 REPLIES 7
messi007
15 - Aurora
15 - Aurora

@valeriemattas,

 

I don't think that you can do this without Batch Macro.

 

Could you please develope more what you want to do with a sample data it will give us more ideas.

 

Best Regards,

valeriemattas
8 - Asteroid

Hi @messi007 

 

Thanks for your quick response! To simplify with sample data, see the attached files. One is a list of keywords and one is the data set we are analyzing. 

 

We'd like to filter the Food List using the Keywords without creating a filter with multiple "OR" statements, given the Keywords list is a document we'd like to update periodically. As such, hoping to have a dynamic filter. 

 

Thanks!!

 

Valerie 

AngelosPachis
16 - Nebula

Hi @valeriemattas ,

 

I believe you can use a Find & Replace tool for that. You can create a flag for every keyword, and then use the Find & Replace tool to look within the Foods list column for the value contained in the Key word column.

 

Then, if a match can be found across the whole string, you will append the Keyword flag. After the Find & Replace tool, all Food records that are not in your keyword list, will have a null Flag, and you can then filter them out.

 

AngelosPachis_0-1612890313614.png

 

It appears 31 foods have the provided keywords.

 

Hope that helps,

 

Angelos

 

valeriemattas
8 - Asteroid

@AngelosPachis  This works, thank you!

 

What would you suggest if we want to perform the same review on multiple fields?

AngelosPachis
16 - Nebula

Hi @valeriemattas 

 

I would suggest using a transpose tool to bring all values into a single column, and then applying the find & replace to the value that contains the values (please have a look at the attached workflow)

 

Hope that helps, let me know if that worked for you

 

Cheers,

 

Angelos

messi007
15 - Aurora
15 - Aurora

@valeriemattas,

 

Another way how to it using a dynamic replace.

I added a new column to the the food sheet to test.

Based on which column you want to filter you can use the transpose tool

 

messi007_1-1612893371227.png

 

Attached the workflow, hope it will help,

 

Regards,

Abena
5 - Atom

You could add an input file (File A) with the same field headers as the main file (File B) you want to filter. Fill in the column of interest (e.g. Sales Month) in File A with the values you want to filter on. In Alteryx, join both input files and your filtered list will be the join option J which is a list of records that have the same Sales Month in both files.

Labels
Top Solution Authors