Freigeben über


count operator

Applies to: ✅Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

Berechnet die Anzahl der Datensätze im Eingabedatensatz.

Syntax

T|count

Learn more about syntax conventions.

Parameters

Name Type Required Description
T string ✔️ Die tabellarische Eingabe, deren Datensätze gezählt werden sollen.

Returns

Diese Funktion gibt eine Tabelle mit einem einzelnen Datensatz und einer Spalte vom Typ longzurück. 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. Möglicherweise müssen Sie den Tabellennamen in der Beispielabfrage so ändern, dass er der Tabelle in Ihrem Arbeitsbereich entspricht.

Wenn Sie den Zählungsoperator mit einem Tabellennamen wie StormEvents verwenden, wird die Gesamtanzahl der Datensätze in dieser Tabelle zurückgegeben.

StormEvents | count

Output

Count
59066

Informationen zur Aggregationsfunktion count() finden Sie unter count() (Aggregationsfunktion).For information about the count() aggregation function, see count() (aggregation function)