Dela via


count operator

Applies to: ✅Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

Beräknar antalet poster i indatapostuppsättningen.

Syntax

T|count

Learn more about syntax conventions.

Parameters

Name Type Required Description
T string ✔️ Tabellindata vars poster ska räknas.

Returns

Den här funktionen returnerar en tabell med en enda post och kolumn av typen 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. Du kan behöva ändra tabellnamnet i exempelfrågan för att matcha tabellen på din arbetsyta.

När du använder taloperatorn med ett tabellnamn, till exempel StormEvents, returneras det totala antalet poster i tabellen.

StormEvents | count

Output

Count
59066

Information om sammansättningsfunktionen count() finns i count() (sammansättningsfunktion).