# Table.PositionOfAny

Owen Duncan|Last Updated: 10/5/2018
|
1 Contributor

Determines the position or positions of any of the specified rows within the table.

``````Table.PositionOfAny(table as table, rows as list, optional occurrence as nullable number, optional equationCriteria as any) as any
``````

## Arguments

ArgumentDescription
tableThe Table to check.
rowsThe List of rows to check for.
optional occurrenceThe number for the appropriate occurrence specification.
optional equationCriteriaAn optional value that specifies how to control comparison between the rows of the table.

Occurrence specification

• Occurrence.First = 0

• Occurrence.Last = 1

• Occurrence.All = 2

## Remarks

• Table.PositionOfAny is similar to List.PositionOfAny but requires a table as input.

## Examples

``````Table.PositionOfAny(
Table.FromRecords({[A=1, B=2],[A=3, B=4],[A=1, B=6]}),
{[A=2, B=6],[A=3, B=4]})
equals 1
``````
``````Table.PositionOfAny(
Table.FromRecords({[A=1, B=2],[A=3, B=4],[A=1, B=6]}),
{[A=3, B=7],[A=1, B=6]},
Occurrence.All, "A")
equals {0, 1, 2}
``````