Compartilhar via


count operator

Applies to: ✅Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

Calcula o número de registros no conjunto de registros de entrada.

Syntax

T|count

Learn more about syntax conventions.

Parameters

Name Tipo Required Description
T string ✔️ A entrada tabular cujos registros devem ser contados.

Returns

Essa função retorna uma tabela com um único registro e uma coluna do 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. Talvez seja necessário modificar o nome da tabela na consulta de exemplo para corresponder à tabela em seu workspace.

Quando você usa o operador de contagem com um nome de tabela, como StormEvents, ele retornará o número total de registros nessa tabela.

StormEvents | count

Output

Count
59066

Para obter informações sobre a função de agregação count(), consulte count() (função de agregação).