count() (aggregatiefunctie)
Van toepassing op: ✅Microsoft Fabric✅Azure Data Explorer✅Azure Monitor✅Microsoft Sentinel-
Telt het aantal records per samenvattingsgroep of totaal als samenvatting wordt uitgevoerd zonder groepering.
Als u alleen records wilt tellen waarvoor een predicaat true
retourneert, gebruikt u countif().
Notitie
Deze functie wordt gebruikt in combinatie met de operator summarize.
Syntaxis
count()
Meer informatie over syntaxisconventies.
Retourneert
Retourneert een telling van de records per samenvattingsgroep of in totaal als samenvatting wordt uitgevoerd zonder groepering.
Voorbeeld
In het volgende voorbeeld wordt het aantal gebeurtenissen in statussen geretourneerd:
StormEvents
| summarize Count=count() by State
uitvoer
Staat | Tellen |
---|---|
TEXAS | 4701 |
KANSAS | 3166 |
IOWA | 2337 |
ILLINOIS | 2022 |
MISSOURI | 2016 |
GEORGIË | 1983 |
MINNESOTA | 1881 |
WISCONSIN | 1850 |
NEBRASKA | 1766 |
NEW YORK | 1750 |
... | ... |
Verwante inhoud
- Aggregatiefunctietypen in één oogopslag
- countof()
- countif() (aggregatiefunctie)
- count_distinct() (aggregatiefunctie)
- bin_at()