Condividi tramite


count operator

Applies to: ✅Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

Calcola il numero di record nel set di record di input.

Syntax

T|count

Learn more about syntax conventions.

Parameters

Name Type Required Description
T string ✔️ Input tabulare i cui record devono essere conteggiati.

Returns

Questa funzione restituisce una tabella con un solo record e una sola colonna di 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. Potrebbe essere necessario modificare il nome della tabella nella query di esempio in modo che corrisponda alla tabella nell'area di lavoro.

Quando si usa l'operatore count con un nome di tabella, ad esempio StormEvents, verrà restituito il numero totale di record in tale tabella.

StormEvents | count

Output

Count
59066

Per informazioni sulla funzione di aggregazione count(), vedere count() (funzione di aggregazione).