We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Random sampling but taking into consideration multiple fields

JP_1
6 - Meteoroid

Hi there,

 

I am looking to sample based on a unique field but don't want to sample a person more than once.  I hope that makes sense but I have put a basic example of the data I am working with below.  E.g. I want to randomly select/sample 3 rows but do not want to sample a name more than once.  So if in the random sample AB345 Alex was selected/sampled, then no more Alex's should be part of the sample.  There should be three unique names in the sample.


I have tried a few things but unfortunately cannot get to the answer - would appreciate the help please.

 

UNIQUE FIELD NAME
AB345Alex
GF458Brad
DC367Charlie
VG689Dave
FG234Ethan
AV001Charlie
YT534Brad
FE123Dave
LF823Dave
PF287Alex
RT987Charlie
LL433Dave
10 REPLIES 10
shwtswnt
5 - Atom

Hello,

 

i have this  below mentioned table. looking help for how to collect sample as per table. table data will change dynamically as Highest  and Random numbers will keep changing. i have raw data file where we have Region, Source Highest $ amount and Random Column now want to fetch data / rows following this table dynamically. Tried with batch macro but not able to do the same.

RegionSource Highest Random
USAApple10
UKLemon134
UAEApple56
USALemon87
NullApple10
Labels
Top Solution Authors