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

Merging multiple fields into one column takin earliest date then renaming field content

KCAgentProvocateur
8 - Asteroid

Hello, 

 

hoping this isnt too complicated, or at least my explanation is clear enough.

 

I have multiple columns which contain dates eg:

Customersaless18ss19offer
106/11/2017   
2 07/11/2017  
3  08/11/2017 
4   09/11/2017
5 07/11/2017 09/11/2017


But i only need to take the earliest date - then populate the field with the head column name eg:

 

CustomerNew_Field
1Sale
2ss18
3ss19
4offer
5ss18

 

Can anyone help me out? as im not sure where to start!

9 REPLIES 9
JosephSerpis
17 - Castor
17 - Castor

Hi @KCAgentProvocateur I mocked up a workflow that produces the output as you describe. Let me know what you think?Renames_Field190819.png

cplewis90
13 - Pulsar
13 - Pulsar

Hey @KCAgentProvocateur,

 

I have attached a workflow that will sort the dates and only give the first option for each (the earliest option). Let me know if you have any questions.

date selections.PNG

KCAgentProvocateur
8 - Asteroid

amazing thanks both - both work amazingly!

KCAgentProvocateur
8 - Asteroid

on this topic - could you also tell me how to change a string field containing: 06/25/2-19 11:43 AM and change it to date format, but i need to keep it in that format. I tried the date time tool but it didnt seem to work.

cplewis90
13 - Pulsar
13 - Pulsar

Here is a workflow that would change a date time to a working datetime field in Alteryx.

KCAgentProvocateur
8 - Asteroid

I actually need a similar workflow to this - but i dont need to rename at the end. 

 

Instead i have the below fields:

 

Left_Opt In Date
Left_Opt In Details
Left_Opted Out Date
Left_Opt Out Details
Right_Opt In Date
Right_Opt In Details
Right_Opted Out Date
Right_Opt Out Details

 

I need to take the earliest opt in date and the opt in details next to that - then the same for opt out date and details.

 

Thanks in advance!

 

cplewis90
13 - Pulsar
13 - Pulsar

Can you share some sample data and the result you are looking for?

KCAgentProvocateur
8 - Asteroid

sample data:

 

CustomerLeft_Opt In DateLeft_Opt In DetailsLeft_Opted Out DateLeft_Opt Out DetailsRight_Opt In DateRight_Opt In DetailsRight_Opted Out DateRight_Opt Out Details
a10/29/2018 05:09 PMAdded by Webforms01/20/2019 07:28 PMopt out click12/25/2018 02:13 PMadded by user  
b11/19/2017 05:09 PMAdded by Webforms05/25/2018 04:21 PMopt out click12/25/2018 02:15 PMadded by user01/22/2018 03:25 PMunsubscribe
C06/22/2018 05:09 PMAdded by Webforms  02/20/2018 05:09 PMadded by user  

 

Required output:

 

 Opt In DateOpt In DetailsOpted Out DateOpt Out Details
a10/29/2018 05:09 PMAdded by Webforms01/20/2019 07:28 PMopt out click
b11/19/2017 05:09 PMAdded by Webforms01/22/2018 03:25 PMunsubscribe
C02/20/2018 05:09 PMadded by user  

 

Thanks,

KCAgentProvocateur
8 - Asteroid

Does the above make sense?

Labels