Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Select X number of records for each value in a field

TeamTJ
8 - Asteroid

I have data with thousands of records including a "category" field. I'm writing that data to Excel, naming the file according to that category.

 

Is it possible to select, say 50, random records for each category?  I already have the write to Excel piece down.

2 REPLIES 2
fmvizcaino
17 - Castor
17 - Castor

Hi @TeamTJ ,

 

This is the way I would do it. The sample tool has the ability to generate a random sample but not a random sample with a specific number of records.

fmvizcaino_0-1591807840621.png

 

Best,

Fernando Vizcaino

 

TeamTJ
8 - Asteroid

That was awesome, thank you!!

Labels