SAMPLE is a DAX function that returns a subset of rows from a given table expression.
Syntax
SAMPLE(
Size,
Table,
[ OrderBy, ... ],
[ Order, ... ]
)
| Argument | Properties | Description |
|---|---|---|
| Size | Number of rows in the sample to be returned. | |
| Table | A table expression from which the sample is generated. | |
| OrderBy | Repeatable | A scalar expression evaluated for each row of the table. |
| Order | Optional, Repeatable | The order to be applied. 0/FALSE/DESC – descending; 1/TRUE/ASC – ascending. |