Compartir a través de


count operator

Applies to: ✅Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

Calcula el número de registros del conjunto de registros de entrada.

Syntax

T|count

Learn more about syntax conventions.

Parameters

Name Type Required Description
T string ✔️ Entrada tabular cuyos registros se van a contar.

Returns

Esta función devuelve una tabla con un único registro y una columna de tipo long. The value of the only cell is the number of records in T.

Examples

The examples in this article use publicly available tables in the help cluster, such as the StormEvents table in the Samples database.

The examples in this article use publicly available tables, such as the Weather table in the Weather analytics sample gallery. Es posible que tenga que modificar el nombre de la tabla en la consulta de ejemplo para que coincida con la tabla del área de trabajo.

Cuando use el operador count con un nombre de tabla, como StormEvents, devolverá el número total de registros de esa tabla.

StormEvents | count

Output

Count
59066

Para obtener información sobre la función de agregación count(), vea count() (función de agregación).