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.
SOLVED

Date Filter to extract the latest record of a item

Karl_Spratt
8 - Asteroid

Hi Community,

Need some help please.  I want to create a Date Filter to extract the latest record of a item.

Sample data below,  same Item no. has 4 records in the table, but I just want to pull the "newest" record using the effectivity_date can someone please explain how I'd do this, I tried a SAMPLE tool but I'm getting 2 records in my data. 

TIA

Karl. 

 

Item No.effectivity_datelast_update_datelast_updated_bycreation_datesafety_stock_quantity
VA1-A888N30/03/2020 00:0030/03/2020 15:33756830/03/2020 15:3321
VA1-A888N06/12/2019 00:0006/12/2019 16:01759906/12/2019 16:0126
VA1-A888N10/01/2019 00:0010/01/2019 16:30759910/01/2019 16:3018
VA1-A888N10/01/2018 00:0010/01/2018 10:30756810/01/2018 10:305
6 REPLIES 6
atcodedog05
22 - Nova
22 - Nova

Hi @Karl_Spratt 

 

Here is a workflow for the task.

Workflow:

atcodedog05_0-1607006091129.png

 

Hope this helps 🙂 Feel to ask if you have any questions


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

JosephSerpis
17 - Castor
17 - Castor

Hi @Karl_Spratt I mocked up a workflow that converts the effective date field into a format Alteyrx recognises as Date Type then sort and then use a unique tool. Let me know what you think?

 

Date_03122020.JPG

messi007
15 - Aurora
15 - Aurora

@Karl_Spratt,

 

please try this:

messi007_0-1607006585221.png

Attached the workflow

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @Karl_Spratt 

 

Cheers and Happy Analyzing 😀

 

Feel free to reach out if you face any issues 🙂

Karl_Spratt
8 - Asteroid

Hi All,  

I tried all 3 solutions, in my data, all they all worked.. thank you  all so must, for your help, and sharing your knowledge. 

Cheers,

Karl. 

SriNarendra
5 - Atom

Hi,

 

By using the summaries tool we can find the max value can you check the workflow it helps you. Feel free to reach out if you face any issues.

Labels
Top Solution Authors