Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

De-flatten Rows with matching Source

JavaGirl
7 - Meteor

 

Below is a sample of the input data I am working with. 

 

IndMIDRptYearStartDateSourceResultOutput
1231002354720222/4/2022A  
12341002354720221/8/2022B7Keep
88169461010382520222/4/2022A>7Keep
8786515282970009820222/9/2022B6.5Keep
54357461101039837220221/19/2022A  
54357461101039837220221/19/2022B6.9Keep

 

Notice the Column labeled output is not part of the input data, but a notation of the desired output.  I need to generate an alteryx workflow that will do the following: 

 

1.  When there are two rows of data with the same MID and different Sources, retain or keep only the row with lab results that are not null or empty. 

2.  When when the row dos not have both sources, retain the record by default. 

 

How is this accomplished in Alteryx?  

Does anyone have any examples they can provide?  

 

Thank you in advance. 

JavaGirl!

2 REPLIES 2
PhilipMannering
16 - Nebula
16 - Nebula

Hi @JavaGirl 

 

Maybe something like this,

PhilipMannering_0-1649103728209.png

 

JavaGirl
7 - Meteor

Hey Philip!  This is beautiful!  Love how clean and to the point it is.  

 

Thank you for your help! 

Labels