In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

Alteryx Designer Desktop Discussions

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

How to use INDEX+MATCH in Alteryx

Bella_Gan
5 - Atom

Input:

1.Actual Delivery Date2.Booked For Delivery (BD) Event Date3.Available For Booking (BK) Event Date4.Actual Arrival Date5.ATD6.AHD
28/02/202528/02/202527/02/202522/02/202516/01/202504/01/2025
 11/03/202525/02/202521/03/202509/01/202504/01/2025
    09/02/202531/01/2025
     24/03/2025

 

Expected Output: to find the last event date and get the corresponding column name

 

Milestone category
1.Actual Delivery Date
4.Actual Arrival Date
5.ATD
6.AHD

 

3 REPLIES 3
KGT
12 - Quasar

I'm not sure exactly what you're after here, as I don't know what event date correlates to those columns. There's no common date between those 4 columns.

 

To get the last event date, use a summarise on that column and get Max.

If you transpose all the data, then you can join on that Max_date and the [Value] field of the transposed data. The [Name] field will be your column name.

 

If you are looking for matches that aren't exact, then it requires a lot more logic.

Bella_Gan
5 - Atom
1.Actual Delivery Date2.Booked For Delivery (BD) Event Date3.Available For Booking (BK) Event Date4.Actual Arrival Date5.ATD6.AHDMilestone category
28/02/202528/02/202527/02/202522/02/202516/01/202504/01/20251.Actual Delivery Date
 11/03/202525/02/202521/03/202509/01/202504/01/20254.Actual Arrival Date
    09/02/202531/01/20255.ATD
     24/03/20256.AHD

 

This is what I want finally, and I also attached a picture here to show how this happen in excel file, I just don't know how to achieve this in Alteryx file, what's formula would be?

KGT
12 - Quasar

It's been a while, as I haven't been active, but I'll place the answer in case it's still unresolved.

 

Remember to make your dates into proper dates, not strings like in the screenshot.

 

  • Set a RecordID (This will help with sorting)
  • Transpose all columns
  • Sort by Name, RecordID
  • Summarise with grouping on Name, and taking Last([Value], Max([Value]

 

That will give you both the Max date on each column and the last value in each column, depending what you are after.

Labels
Top Solution Authors