Start Free Trial

Alteryx Designer Desktop Discussions

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

Random samples selection with reading from file

SH_94
11 - Bolide

Dear community,

 

I would like to ask about the samples selection function in alteryx. Currently i am using the random% sample tool to randomly select the samples from the excel file as per screenshot below. However, i would like to ask the alteryx to read from the excel about the number of random N records instead of i type in the tools as per screenshot below.

 

SH_94_1-1656888651874.png

Example of excel data below whereby i would like to ask Alteryx to read from the data in excel instead of i key inside the tools.

SH_94_2-1656888749214.png

 

May i know is it possible to do it in alteryx or any other functions that we can use?

 

Many thanks in advance

 

 

 

3 REPLIES 3
flying008
15 - Aurora

Hi,@SH_94 

 

Maybe you need make the random sample tool to a macro, control parameter to update the value [random number], the you can exec.

SH_94
11 - Bolide

Dear @flying008 ,

 

Thank you for your prompt response.

 

Would you be able to guide me on this or do you have any workflow that can shared?

 

Below is my source file and samples selection file.

 

Thank you

ArtApa
Alteryx
Alteryx

Hi @SH_94 - Here is how you can do this:

ArtApa_0-1656900099366.png

 

Labels
Top Solution Authors