Alteryx Designer Desktop Discussions

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

Dynamically filter out data based on a different input data

madhurinani
8 - Asteroid

Hello,

I want to dynamically filter out certain keywords that I am getting based from a different input data.

madhurinani_0-1658830073073.png

In the above example, I am able to create the CALC column if there is only 1 condition of filtering out keyword C. I use the Contains logic to achieve that.

 

But now my requirement is that if I get an external file which has all the keywords that need to be filtered out, how do i achieve that?

So for example, since keywords C and D needs to be filtered, I need to create some formula that looks on group 1, filters our C&D and the new column should be 21-3-4==14

 

GroupNamesCOUNT
1A1
1B2
1C3
1D4
1E5
1F6
1TOTAL21
2B4
2C5
2E6
2F7
2TOTAL22

 

 

Names
C
D

 

6 REPLIES 6
binuacs
20 - Arcturus

@madhurinani something like below

 

binuacs_0-1658832921006.png

 

 

Amol_Telore
11 - Bolide

Hey @madhurinani 

 

One way of doing this. I was not clear about the desired results so I have added both the outputs in flow as per my understanding. Hope this is what you are looking for. Feel free to reach out to me in case of any concerns.

 

Amol_Telore_5-1658833136880.png

 

 

 

Output 1

Amol_Telore_2-1658832768956.png

 

 

Output 2

Amol_Telore_3-1658832785675.png

 

Regards,

Amol Telore

Amol_Telore
11 - Bolide

@binuacs beat me this time. 😁

ChrisTX
15 - Aurora

The attached workflow should give you a starting point.

 

ChrisTX_1-1658833458918.png

 

 

Chris

madhurinani
8 - Asteroid

Hello @binuacs ,

Thank you for your earlier solution.
There is an edge case which I noticed in my input data.

I have added one more record on the main dataset.

madhurinani_0-1659605515628.png

Row #13 is the new record which is added.
When I run the workflow, the group #3 data doesnt show up. I understand that #3 has no matching record or anything to compare with the other data source. But it should display the record as it is in the final output.

 

How can i achieve that?

I am also attaching your workflow in which i included the added record for your reference.

 

Thanks

binuacs
20 - Arcturus

@madhurinani Adding a union tool to the left join output anchor will solve the issue

 

 

binuacs_0-1659648185924.png

 

Labels