# Sampling Rows[¶](https://knowledge.dataiku.com/latest/courses/resources/excel-to-dss/sample.html#sampling-rows "Permalink to this headline")

In Excel you can create a column of random values with the RAND() function and then filter on values of that column to select a random subsample of rows.

In Dataiku DSS, you can use the Sample step in a **Sample/Filter recipe** to draw a subsample of your data. This can be a random sample, or a weighted sample based on the different classes of a particular variable.

See also

Sample recipe lessons in the Visual Recipes 101 course

Sample recipe in the reference documentation
