# Table.PositionOfTable.PositionOf

## SyntaxSyntax

```Table.PositionOf(table as table, row as record, optional occurrence as any, optional equationCriteria as any) as any
```

Gibt die Zeilenposition des ersten Vorkommens der `row` in der angegebenen `table` zurück.Returns the row position of the first occurrence of the `row` in the `table` specified. Gibt -1 zurück, wenn kein Vorkommen gefunden wurde.Returns -1 if no occurrence is found.

• `table`: Die Eingabetabelle.`table`: The input table.
• `row`: Die Zeile in der Tabelle, deren Position gefunden werden soll.`row`: The row in the table to find the position of.
• `occurrence`: [Optional] Gibt an, welche Vorkommen der Zeile zurückgegeben werden sollen.`occurrence`: [Optional] Specifies which occurrences of the row to return.
• `equationCriteria`: [Optional] Steuert den Vergleich zwischen den Tabellenzeilen.`equationCriteria`: [Optional] Controls the comparison between the table rows.

## Beispiel 1Example 1

Ermittelt die Position des ersten Vorkommens von [a = 2, b = 4] in der Tabelle `({[a = 2, b = 4], [a = 6, b = 8], [a = 2, b = 4], [a = 1, b = 4]})`.Find the position of the first occurrence of [a = 2, b = 4] in the table `({[a = 2, b = 4], [a = 6, b = 8], [a = 2, b = 4], [a = 1, b = 4]})`.

``````Table.PositionOf(
Table.FromRecords({
[a = 2, b = 4],
[a = 1, b = 4],
[a = 2, b = 4],
[a = 1, b = 4]
}),
[a = 2, b = 4]
)
``````

`0`

## Beispiel 2Example 2

Ermittelt die Position des zweiten Vorkommens von [a = 2, b = 4] in der Tabelle `({[a = 2, b = 4], [a = 6, b = 8], [a = 2, b = 4], [a = 1, b = 4]})`.Find the position of the second occurrence of [a = 2, b = 4] in the table `({[a = 2, b = 4], [a = 6, b = 8], [a = 2, b = 4], [a = 1, b = 4]})`.

``````Table.PositionOf(
Table.FromRecords({
[a = 2, b = 4],
[a = 1, b = 4],
[a = 2, b = 4],
[a = 1, b = 4]
}),
[a = 2, b = 4],
1
)
``````

`2`

## Beispiel 3Example 3

Ermittelt die Position aller Vorkommen von [a = 2, b = 4] in der Tabelle `({[a = 2, b = 4], [a = 6, b = 8], [a = 2, b = 4], [a = 1, b = 4]})`.Find the position of all the occurrences of [a = 2, b = 4] in the table `({[a = 2, b = 4], [a = 6, b = 8], [a = 2, b = 4], [a = 1, b = 4]})`.

``````Table.PositionOf(
Table.FromRecords({
[a = 2, b = 4],
[a = 1, b = 4],
[a = 2, b = 4],
[a = 1, b = 4]
}),
[a = 2, b = 4],
Occurrence.All
)
``````
 00 22