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!

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