Alteryx Designer Desktop Discussions

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

Iterative Reconciliation with Dynamic Filters

R0M
6 - Meteoroid

Hello everyone,

I have recently done a workflow that reconciles two sources and makes outputs according to the possible mismatch (cf. below).

 

R0M_1-1628531915212.png

Both sources have approximately the same structure:


:dbfileinput:Source 1:

 

C1C2...C30
42200010.42...event10
62210029.77...event11
4900207.19...event14



:dbfileinput:Source 2:

 

CaCb...Cz
42200010.42...E10
62210029.77...E11
5100107.02...E17



I would like to replicate this reconciliation several times but with different filters (currently hard coded in the three "Filter Elem" that you can see at the beginning of the workflow).
I was thinking to use an Iterative Macro looping through a third input, having the columns to filters and the expected values, but I am struggling a bit with its implementation.

:dbfileinput: Parameter Input Example:

 

C1C30CaCb...Cz
422000event10,event11NEWUK...special
390100 NEWFR,UK...E10,E11,E12
510010  FR...E24



The filters would be applied as below:

 

  • The Filter Elem 1 will only consider the column C1.
  • The Filter Elem 2 will only consider the column C30.
  • The Filter Elem 3 will consider the combination of all the others columns of the second source.

Note1: if the value of a column is empty, it won't apply any filter on it.
Note2: if several values must be filtered on the same column, I split it with commas

 


The treatment of the workflow itself does not really matter, the idea for me is to get the base of a structure to do the iteration and the filtering, and make one output per iteration.

Also, if you think about any other more elegant solution, please do not hesitate 🤗

 


Thanks for your help,

Romain

1 REPLY 1
R0M
6 - Meteoroid

Hi everyone,

 

Any idea/suggestion regarding my post? 

 

Thanks again!

Romain

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels