Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Random Sampling by group

mapp2
5 - Atom

Hi all,

 

I have a large data file that I have read in which contains over 50 periods. I would like to randomly select 10 records from each period. How is this possible?

 

Thanks in advance.

2 REPLIES 2
patrick_digan
17 - Castor
17 - Castor

@mapp2 I would use the Rand function, sort on your period and rand, and then sample the 10 records:

 

Capture.PNG

 

See the attached v11.0 workflow

mapp2
5 - Atom

Thanks!

Labels
Top Solution Authors