List.Positions
This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.
Returns a list of positions for an input list.
List.Positions(list as list) as list
| Argument | Description |
|---|---|
| list | The List to check. |
- When using
List.Transformto modify a list, the list of positions can be used to give the transform access to the positions.
List.Positions({4, 5, 6}) equals {0, 1, 2}
Show: