In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

Alteryx Designer Desktop Discussions

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

Filter a table based on another table unique values with conditions

Balaji_Pandian
5 - Atom

Hi All,

Please let me know the following task can be done in the Alteryx data model. 
I have two tables, Table 1: is having unique 5 series (col. [Num1]) values Table 2: is a dump table.

We need to filter each num 1 value from table 1 into table 2 to create output data

once table 2 filters, we have to check if any 4 serial numbers are found in Num2 columns in the filtered data.

4 series values might be found / not found in num2 column

if 4 series values are found in the Num2 column then we need to filter every 4 serial numbers into the dump num1 column to create group table of the 5 series 

the looping to be continued till 4 series values appear in Num 2 column (Pls ref. Output table, example. 56111)

if 4 series value is not found then looping should stop and search for the next 5 series values in Table 1

Additionally, 2 blank rows to be inserted between each 5 series table in the output, 1 blank row to be inserted between each 4 series table in the output

 

Table 1:

Num1Status
51482Active
56111Active
55782Active

 

Table 2: (Dump)

Col1Num1Col4Num2Col6Col7Col8
1100456191,000.000143811.2298.79 %99.00%
1100456191,000.000163380.8099.21 %99.21%
1100456191,000.000456200.000.000.00
1100456201,000.000160013.0997.00 %96.99%
1100456201,000.000161933.0997.00 %96.99%
1100456201,000.000161953.0997.00 %96.99%
1100456201,000.000163380.8099.21 %99.21%
1100456311,000.000456190.000.000.00
1100456311,000.000722751.2198.80 %99.00%
1100514826,000.0001200124.9180.06 %81.95%
1100514826,000.000163387.0793.40 %94.49%
1100514826,000.000604840.480.4899.57%
1100514826,000.000703360.480.4899.57%
1100514826,000.000716170.480.4899.57%
1100561115,310.000456310.000.000.00
1100561115,310.000703340.480.4899.57%
1100561115,310.000716110.480.4899.57%
1100557825,310.000486310.000.000.00
1100557825,310.000496190.000.000.00
1100557825,310.000783340.480.4899.57%
1100486311,000.000161933.0997.00 %96.99%
1100486311,000.000161953.0997.00 %96.99%
1100486311,000.000163380.8099.21 %99.21%
1100

49619

1,000.000722751.2198.80 %99.00%

 

Output table: (with explanation)

Capture.JPG

I have attached the sample data set for your review. Please help me achieve this requirement in the Alteryx workflow.

 

 

0 REPLIES 0
Labels
Top Solution Authors