We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

merging 2 dataset to create final output ; failing

sbatra116
8 - Asteroid

Background:    Dataset has record_id that will define whether to follow approach1 or approach2 in workflow.

its possbile dataset can have record_id for both the approaches or either of them.

 

dataset  --> check record_id --> If 1 then follow approach 1 -->  output 1  --> merge both the output using Union (this is final output) 

   check record_id --> If 2 then follow approach 2 -->  output 2

 

Problem:   when the dataset contains record for any one ; union fails starting NO common records found.

it works fine when dataset has record for both.

 

Dataset:

check record_idColum1Colum2Colum3
1test1Address1State1
1test2Address2State2
2test3Address3State3

 

 

Approach:

used summarize tool to get count ;

then filter tool to check whether count >=1 

if true follow approach 1 --> business logic -->  output1      --> Merging both to get the final output (it fails depending upon intial dataset)  

if false follow approach 2 --> business logic  --> output2   

 

 

 

1 REPLY 1
Samantha_Jayne
Alteryx
Alteryx

Just wondering if a formula tool with a conditional statement would be better? You can join back on your count and then run everything through one flow and have an "error" state should if fall outside of your known processes.

Samantha Clifton
Alteryx
#alteryxrocks
Labels
Top Solution Authors