List.PositionOf

Syntax

List.PositionOf(list as list, value as any, optional occurrence as nullable number, optional equationCriteria as any) as any

Description

Returns the offset at which the value value appears in the list list. Returns -1 if the value doesn’t appear. An optional occurrence parameter occurrence can be specified.

Reference Data

https://docs.microsoft.com/en-us/powerquery-m/power-query-m-function-reference

Power Query M Functions / List Functions / List.PositionOf