Alteryx Designer Desktop Discussions

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

First date by person

MJep
5 - Atom

Hi Everyone!

 

How do you filter a dataset to reflect only the first piece of data by date for a ID / person?

 

I have mocked up the below data as an example. In reality the dataset is 10k+ lines.

 

NameDate
Mark01/01/2020
Mark01/02/2020
Joy01/01/2020
Frank04/04/2020
Joy01/02/2020
Frank09/09/2020

 

Thanks,

Mark

3 REPLIES 3
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @MJep,

 

You'll want to sort and sample your data to take the first row for each Name (use the group by function on the Sample tool)

 

Jonathan-Sherman_0-1599649037372.png

 

If this solves your issue please mark the answer as correct, if not let me know! I've attach my workflow for you to download if needed.

 

Regards,

Jonathan

 

Emil_Kos
17 - Castor
17 - Castor

Hi @MJep,

 

I think you can just sort the data and use sample function.

 

Please find attached example. If that is not the desired output plus provide us with example of it.

MJep
5 - Atom

Thanks for your quick response and solution, Jonathan 🙂

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels