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

Split the table based on multiple conditions

tww
8 - Asteroid

Hi all,

 

Below is the original dataset that I want to split it into 3 different datasets as pass, open, and exception. Could someone kindly show me how to go about doing this? Any help is greatly appreciated. Thank you.

 

1. Pass table will contain all the ones with current status = success and the difference between current successful finished date and first started date is equal or less than 1 day for the same client. I also want to remove client where there was no failure. i.e. no further work on those ones.

2. Open table will contain all the ones with status=failed and no success thereafter for the same client.

3. Exception table will contain all the ones with mix of failed and success status, but the finished date of last success is more than 1 day from the started date of first failure.

See the example output below.

 

Original dataset:

 

ClientStatusStartedFinished
adfs02.ccnb.comfailed2/27/20222/27/2022
adfs02.ccnb.comsuccess2/28/20222/28/2022
devcsssql01.ccnb.comfailed2/27/20222/27/2022
devcsssql01.ccnb.comsuccess2/28/20222/28/2022
devdbasql01.ccnb.comfailed2/14/20222/14/2022
devdbasql01.ccnb.comfailed2/15/20222/15/2022
devdbasql01.ccnb.comfailed2/15/20222/15/2022
devdbasql01.ccnb.comfailed2/15/20222/15/2022
devdlakesql01.ccnb.comfailed2/8/20222/9/2022
devdlakesql01.ccnb.comsuccess2/9/20222/9/2022
devdlakesql01.ccnb.comfailed2/9/20222/9/2022
devdlakesql01.ccnb.comfailed2/10/20222/10/2022
devdlakesql01.ccnb.comsuccess2/10/20222/10/2022
devdlakesql01.ccnb.comfailed2/12/20222/13/2022
devdlakesql01.ccnb.comfailed2/13/20222/13/2022
devdlakesql01.ccnb.comfailed2/13/20222/14/2022
devdlakesql01.ccnb.comfailed2/14/20222/14/2022
devdlakesql01.ccnb.comsuccess2/14/20222/15/2022
devdlakesql01.ccnb.comfailed2/28/20222/28/2022
devspdb01.ccnb.comfailed2/28/20223/1/2022
prddlakesql01.ccnb.comfailed2/28/20222/28/2022

 

Pass:

ClientStatusStartedFinished
adfs02.ccnb.comfailed2/27/20222/27/2022
adfs02.ccnb.comsuccess2/28/20222/28/2022
devcsssql01.ccnb.comfailed2/27/20222/27/2022
devcsssql01.ccnb.comsuccess2/28/20222/28/2022
devdlakesql01.ccnb.comfailed2/8/20222/9/2022
devdlakesql01.ccnb.comsuccess2/9/20222/9/2022
devdlakesql01.ccnb.comfailed2/9/20222/9/2022
devdlakesql01.ccnb.comfailed2/10/20222/10/2022
devdlakesql01.ccnb.comsuccess2/10/20222/10/2022

 

Open:

 

ClientStatusStartedFinished
devdbasql01.ccnb.comfailed2/14/20222/14/2022
devdbasql01.ccnb.comfailed2/15/20222/15/2022
devdbasql01.ccnb.comfailed2/15/20222/15/2022
devdbasql01.ccnb.comfailed2/15/20222/15/2022
devdlakesql01.ccnb.comfailed2/28/20222/28/2022
devspdb01.ccnb.comfailed2/28/20223/1/2022
prddlakesql01.ccnb.comfailed2/28/20222/28/2022

 

Exception:

 

ClientStatusStartedFinished
devdlakesql01.ccnb.comfailed2/12/20222/13/2022
devdlakesql01.ccnb.comfailed2/13/20222/13/2022
devdlakesql01.ccnb.comfailed2/13/20222/14/2022
devdlakesql01.ccnb.comfailed2/14/20222/14/2022
devdlakesql01.ccnb.comsuccess2/14/20222/15/2022
2 REPLIES 2
Clifford_Coon
11 - Bolide

Hi tww,

 

Here is something that gets there if a little complex. (I incremented first fail date manually to a value of 2)

Annotation 2023-03-31 155728.jpg

tww
8 - Asteroid

Hi @Clifford_Coon 

 

Thank you so much for helping out. As a new user, I would have no chance of developing such complicated workflows. Now I need to go through them in details to understand the logics. :)

 

Thank you

Labels