ORDERBY is a DAX function that specifies expressions and order directions to determine the sort order within each partition, used within Window functions.
Syntax
ORDERBY(
[ OrderBy_Expression, ... ],
[ OrderBy_Direction, ... ]
)
Argument | Properties | Description |
---|---|---|
OrderBy_Expression | Optional, Repeatable | An expression used to determine the sort order. |
OrderBy_Direction | Optional, Repeatable | The order direction of the corresponding OrderBy_Expression. 0/FALSE/DESC – descending; 1/TRUE/ASC – ascending. |