Alteryx Designer Desktop Discussions

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

Choose number of samples for Random % Sample

MiroPwC
7 - Meteor

Hey guys,

 

I would like to ask you for a little help with my code. I  MUST use random % sample to select samples from the defined data set (around 50 000 rows). However, this function only allows me to manually input the number of samples. But the number of samples is always different and is calculated within my workflow (column 1 / column 2 * column 3 = Column "Number of samples" and numbers in columns change based on user input).

 

My question is, how can I "tell" to the random % sample function to select the number of samples based on mine calculation without manually inputting the number to the function ? The number should be taken from column "Number of samples"(for instance 11 samples).

 

Thanks in advance for your advices 🙂

2 REPLIES 2
afv2688
16 - Nebula
16 - Nebula

Hello @MiroPwC,

 

Try using this

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Regards

MiroPwC
7 - Meteor

Thanks a lot. Works like magic.

Labels