SUBSTITUTEWITHINDEX is a DAX function that returns a table representing the semijoin of two tables with common columns replaced by a 0-based index column.
Syntax
SUBSTITUTEWITHINDEX(
Table,
Name,
SemiJoinIndexTable,
[ Expression, ... ],
[ Order, ... ]
)
Argument | Properties | Description |
---|---|---|
Table | Table to be modified. | |
Name | A name of the column to be added to the first table. | |
SemiJoinIndexTable | Table that will be ordered and used to calculate index and to join with the first argument. | |
Expression | Repeatable | Order by expression for the second parameter (SemiJoinIndexTable). |
Order | Optional, Repeatable | The order to be applied. 0/FALSE/DESC – descending; 1/TRUE/ASC – ascending. |