Alteryx Designer Desktop Discussions

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

Alteryx Designer

subin1234
8 - Asteroid

Hi Guys,

 

I have two files as below 

 

testcasename 
FV_001
FV_002
FV_003
FV_004 
FV_005

FV_006

 

 

2nd file 

 

OrderNumberTestCaseNameStatus
111FV_001Pass
111FV_002Pass
111FV_003Pass
111FV_004Pass
111FV_005Pass
222FV_001Pass
222FV_002Pass
222FV_003Pass
222FV_004Pass
222FV_005Pass
333FV_001Pass
333FV_002Pass
333FV_003Fail 
333FV_004Pass

 

 

I need to each testcase in file1 to go through each ordernumber and testcase in file 2 and give me an output as below.

 

OrderNumberTestCaseNameStatus
111FV_001Pass
111FV_002Pass
111FV_003Pass
111FV_004Pass
111FV_005Pass
111FV_006Rejected
222FV_001Pass
222FV_002Pass
222FV_003Pass
222FV_004Pass
222FV_005Pass
222FV_006Rejected
333FV_001Pass
333FV_002Pass
333FV_003Fail 
333FV_004Pass
333FV_005Rejected
333FV_006Rejected

 

If the testcase is not present in file 2 for a particular order number then the output should have the status as rejected for that ordernumber and testcase.

Is there any way this can be done 

8 REPLIES 8
BenMoss
ACE Emeritus
ACE Emeritus

Hi @subin1234,

 

Here's how you can come to the output you desire.

 

Image.png

 

The summize and append tool allows us to create an 'all possible scenarios' between order numbers and test cases. We can then use a join tool against our 2nd dataset to identify aspects from our all scenarios table that are missing, these are those that have been rejected.

 

Example workflow attached.

 

Ben

subin1234
8 - Asteroid

Can u send the screenshot of the configuration of the tool used in the workflow. I am getting error message while trying to open the workflow.  Thanking in advance.

BenMoss
ACE Emeritus
ACE Emeritus

What version are you using @subin1234?

 

Ben

subin1234
8 - Asteroid

I am using 11.05. 

BenMoss
ACE Emeritus
ACE Emeritus

Does this work?

 

Ben

subin1234
8 - Asteroid

Thanks for the sample. Its working fine. But Error is throwing on appends of more than 16 Records: Is there any way to get rid of this error as I will be dealing with a lot of records.

BenMoss
ACE Emeritus
ACE Emeritus

Yes, in the append fields tool, check the option at the bottom 'allow all appends'

 

Ben

subin1234
8 - Asteroid

thank you very much. Its working fine

Labels