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 ensuring unique results based on one column

KyleC
5 - Atom

Hello, 

 

Very new to Alteryx, and this site. Hoping someone might be able to assist with the below, please. 

 

I'm looking to randomly sample from a population (excel file), but I need to ensure I don't sample the same group more than once from one particular column. I'm using the random % sampling tool, but there's no option to configure other than number of records. 

 

Thanks

3 REPLIES 3
martinson
11 - Bolide

Hi @KyleC I am unaware of any way to do this within the sample tool. If there are duplicates, using the unique tool with the group selected will ensure a group only appears once in the sample.

 

I hope this helps, any other questions let me know.

 

martinson

Bulien

 

Screenshot 2025-01-15 160132.png

Cheers,
martinson

LinkedIN

Bulien
KyleC
5 - Atom

Hi @martinson - thanks for the suggestion! I will give it a go and see how I get on. 

martinson
11 - Bolide

@KyleC  Unfortunately this will mean you cannot accurately predict the number of records in the sample. If you require an exact sample size I'd recommend using the random % sampling tool on a list of unique groups and then randomly selecting 1 record from each.

Cheers,
martinson

LinkedIN

Bulien
Labels
Top Solution Authors