Alteryx Designer Desktop Discussions

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

Select by sort by group

khannan
5 - Atom

I am new to Alteryx and have mostly used SAS Enterprise Guide. 

 

I am wondering if there is a way to sort and then select the first record of each sort by group. 

4 REPLIES 4
BenMoss
ACE Emeritus
ACE Emeritus

Yes! Check out the sample tool. Here you can select the 'First N' records, in your case 1.

 

It also allows you to select fields to 'group by', which means the expression ends up as...

 

Select me the first n records for each member in these groups.

 

Have a play and let us know if this brings you to the solution you need!

 

https://help.alteryx.com/current/Sample.htm

 

Ben

MarqueeCrew
20 - Arcturus
20 - Arcturus

@khannan,

 

First use a SORT tool and then use a SAMPLE tool (configured as FIRST N Records) with the "Group by" field(s) checked.

 

Cheers,

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
khannan
5 - Atom

Yup! I see it now....right in front of me. 

 

Learning a new tool again is great! haha

MarqueeCrew
20 - Arcturus
20 - Arcturus

I'm just happy to know that you've been freed from EM.

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels