The sample tool allows you to select a subset of rows in your data. This tool is useful if you need to just see, for example, the first record in your data set, the first 10 Records 10% of all records or every 10th record in your data set. As illustrated in the slide here. The first picture is our example HR data set. The second is where we've included our sample tool, and I've selected one out of every five records. And the last picture shows the outputs of that sample.
Let's start a new workflow by importing spreadsheet 2.4. We'll go to the Insert tab, drag in the input data tool and connects to 2.4 sample. We again have our HR file with 30 employees. So now we'll go to the preparation tab and drag in the sample tool In the configuration menu on the left, we have several sampling options. If we go to the middle and update n equals 100 to n equals 10. We can now choose to sample the first 10 rows in our data set the last 10 rows.
Skip the first 10 rows ensure everything else. Show one out of every 10 Records. Have a one in 10 or 10% chance to include each row or only show the first 10% of all records in the data set. Select each of these one by one and press the run workflow button or Ctrl R to familiarize yourself with the outputs of each option. I've selected the first 10 rows here. Therefore the first 10 records have appeared in the preview pane.