You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> <ahref="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAwsuyS/KdS1LzSsp5qpRyC9KSS1SSKpUCC5JLElVSCxO1gExi0pCMnNTFVJSi5MBfa8LRzAAAAA="target="_blank">Run the query</a>
Produces a table that aggregates the content of the input table.
16
14
@@ -30,7 +28,7 @@ Produces a table that aggregates the content of the input table.
30
28
|*Column*|`string`||The name for the result column. Defaults to a name derived from the expression.|
31
29
|*Aggregation*|`string`|:heavy_check_mark:|A call to an [aggregation function](aggregation-functions.md) such as `count()` or `avg()`, with column names as arguments.|
32
30
|*GroupExpression*|scalar|:heavy_check_mark:|A scalar expression that can reference the input data. The output will have as many records as there are distinct values of all the group expressions.|
33
-
|*SummarizeParameters*| `string` ||Zero or more space-separated parameters in the form of *Name*`=`*Value* that control the behavior. See [supported parameters](#supported-parameters).
31
+
|*SummarizeParameters*|`string`||Zero or more space-separated parameters in the form of *Name*`=`*Value* that control the behavior. See [supported parameters](#supported-parameters).|
34
32
35
33
> [!NOTE]
36
34
> When the input table is empty, the output depends on whether *GroupExpression*
@@ -39,7 +37,6 @@ Produces a table that aggregates the content of the input table.
39
37
> * If *GroupExpression* is not provided, the output will be a single (empty) row.
40
38
> * If *GroupExpression* is provided, the output will have no rows.
41
39
42
-
43
40
### Supported parameters
44
41
45
42
|Name |Description |
@@ -78,6 +75,10 @@ The following table summarizes the default values of aggregations:
78
75
79
76
## Examples
80
77
78
+
The example in this section shows how to use the syntax to help you get started.
The following query calculates the number of unique storm event types for each state and sorts the results by the number of unique storm types:
@@ -192,7 +194,6 @@ When the input of `summarize` operator doesn't have an empty group-by key, the r
192
194
> [!div class="nextstepaction"]
193
195
> <ahref="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAz2PwQ7CIBBE7yb+A0cwHLz0YqI/YkyzBaQbAU3ZNtT48S7EGg4zmTe7WSwQvyE4WU7hmby63va7j8hzjDDh2wlIa1/OBA/Xs5VFaQGT7yMUjn9OFi0OG8C0AUx/sPg2OcwYbDajiyDpadcEEQ27TBOmWlFcagur1nnWl5uMS4T1Ri26jqMxBEZCZ7JuaSU+eFO8114RF3HkgCx6l6nBhb8EyfAe9QXbqS6i+AAAAA=="target="_blank">Run the query</a>
The result of `avg_x(x)` is `NaN` due to dividing by 0.
208
209
209
-
210
210
> [!div class="nextstepaction"]
211
211
> <ahref="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAA0tJLAHCpJxUjQqrnPy8dM3oWF6uGoXi0tzcxKLMqlQFheT80rwSjQpNHQgrM02jQsFOwUBTQUchBSGXApfUUYDIAwDGwdg7WgAAAA=="target="_blank">Run the query</a>
> <ahref="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAA0tJLAHCpJxUjQqrnPy8dM3oWF6uGoXi0tzcxKLMqlQFhdzE7NT44tQSjQpNHQgnJ7MYxAMATGERsTsAAAA="target="_blank">Run the query</a>
228
226
229
-
230
227
```kusto
231
228
datatable(x:long)[]
232
229
| summarize make_set(x), make_list(x)
@@ -259,11 +256,9 @@ range x from 1 to 4 step 1
259
256
260
257
The regular count will count nulls:
261
258
262
-
263
259
> [!div class="nextstepaction"]
264
260
> <ahref="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAy3KTQqAIBAG0H3QHb6lA20MWnoYqTEEf2JU0OjwEbR7iyc2nYwOJzlCo2asKJUv6Hl6wL1yOjBg4J1THcZALxC2QaUWAv3eiL5eWoxW/M3Yc0tVDXoBSiga018AAAA="target="_blank">Run the query</a>
265
261
266
-
267
262
```kusto
268
263
range x from 1 to 2 step 1
269
264
| extend y = iff(x == 1, real(null), real(5))
@@ -276,11 +271,9 @@ range x from 1 to 2 step 1
276
271
|---|
277
272
|2|
278
273
279
-
280
274
> [!div class="nextstepaction"]
281
275
> <ahref="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAA03KSwqAIBRG4XnQHv6hQhODhq4lhK4h+YirgkWLr6BBs3PgYxNXQoPlFKBQEkbkQjtU312gViguOKDhrBUNWkMNYDJexOq9/HqS8uW5hmDYnYRgNpozFXE85Dc305SXFm8AAAA="target="_blank">Run the query</a>
> <ahref="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAA3WR3W7CMAyF73mKI25KpRbaTmjSUJ8CpF1WoXVptPxUifmb9vBLoGO7GFeR7ePv2I4ihpamYdToBBNLTYuqKF/zosyLdbqZqagQl/8UVV68oKreimLSdVFUDZtZR9o2WnxQ48lJ8tXsCzHM7yHMUdfidFiEN4U12AXoloUe0Turp4nYTsaeaYzs/RVedgis80CObkFdI9ltywTAagV4UtQyRKiZgyLEaTGZ9taFQqtIGHI4SX8USn4KltYEJF2YTIeFMFaHPPkMvrWOMuxFoEpDaVjujmo6aq0erafmIY+7ZCiX6wx5mSGJHb3kJA1sF8jB8q69toNwjLPkYfGTseqoja//eLNkRXXyTnuIcVyCneh72cL2YQdtDQ8ZHvIkDcsfPWH+3AvPvObx0FMXD/RLhfDYW9VhtNKwj/8U69M1b2S//AbRUQMWQQIAAA=="target="_blank">Run the query</a>
The following query creates a bar chart displaying the number of storm events for each state, filtering only those states with more than 10 events. The chart provides a visual representation of the event distribution across different states.
@@ -157,6 +160,8 @@ StormEvents
157
160
158
161
### Use the `ysplit` property
159
162
163
+
The following query provides a daily summary of storm-related injuries and deaths, visualized as a bar chart with split axes/panels for better comparison.
164
+
160
165
> [!div class="nextstepaction"]
161
166
> <ahref="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAA1WOMQ6DMAxFd07hkagsPQAbHZjhAiFYwogkyDGlVD1800a04O1//2f/Rjzb2x2dhOwFYbFWMz0xgzitFz3VblyYMED52ea7rIjRiILLya1dn/zif6BCLcOOJ3GGk/dDv2S3QUcub0SztGSxgGuvYsGZ/RhDcFicWhbHnzHP6HpkMH5arDNDhGAlGSDfwjyRlPqBQb0BEH1UJQQBAAA="target="_blank">Run the query</a>
162
167
@@ -189,5 +194,4 @@ StormEvents
189
194
190
195
:::image type="content" source="media/visualization-barchart/bar-chart-ysplit-panels.png" alt-text="Screenshot of column chart using ysplit panels property." lightbox="media/visualization-barchart/bar-chart-ysplit-panels.png":::
> <ahref="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAy2LsQqDQBAFe7/icZX5CAuLJFxjocH+8BZd0D1ZV0Xw42OC1RQz01jS6bmR2JKd2AdSQmPBqChc6+u3r3zpECTiH32O+WdeY0rRXUOXVrGLShJJ0QWN2NkG5MY20l0uYEHL2rNwcI8vTweEO3QAAAA="target="_blank">Run the query</a>
This query provides a visual representation of states with a high frequency of storm events, specifically those with more than 10 events, using a column chart.
98
102
99
103
> [!div class="nextstepaction"]
100
104
> <ahref="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAwsuyS/KdS1LzSsp5qpRKC7NzU0syqxKVUgFCcUn55fmldiCSQ1NhaRKheCSxJJUoMLyjNQiFEUKdgqGBkCJgqL8rNTkEohCHWQVQMmi1LyU1CKF5Pyc0ty85IzEohIAvF8Py38AAAA="target="_blank">Run the query</a>
101
105
102
-
103
106
```kusto
104
107
StormEvents
105
108
| summarize event_count=count() by State
@@ -112,6 +115,8 @@ StormEvents
112
115
113
116
### Use the `ysplit` property
114
117
118
+
This query provides a daily summary of storm-related injuries and deaths, visualized as a column chart with split axes/panels for better comparison.
119
+
115
120
> [!div class="nextstepaction"]
116
121
> <ahref="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAA1WOMQ6DMAxFd07hkagsPQAbHZjhAiFYwogkyDGlVD1800a04O1//2f/Rjzb2x2dhOwFYbFWMz0xgzitFz3VblyYMED52ea7rIjRiILLya1dn/zif6BCLcOOJ3GGk/dDv2S3QUcub0SztGSxgGuvYsGZ/RhDcFicWhbHnzHP6HpkMH5arDNDhGAlGSDfwjyRlPqBQb0BEH1UJQQBAAA="target="_blank">Run the query</a>
117
122
@@ -132,7 +137,6 @@ To split the view into separate panels, specify `panels` instead of `axes`:
132
137
> [!div class="nextstepaction"]
133
138
> <ahref="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAA1WOMQ6DMAxFd07hEVSWHoCNDsxwgRAsYZQ4yDGtqHr4pkW04O1//2f/VoP42x1ZY/aCuHhvhJ6YQZouqHENT4sQRqg+23yXNQlaLeBychseNr/8H6jR6LjjmzjDm/dDv2S/Qk+ct2pEO/JYwnUoUsFZwpRCcFicWpbHnykvyAMK2OAWz3ZMEDxIR8jXODvSajaMLhZvciiM8gYBAAA="target="_blank">Run the query</a>
134
139
135
-
136
140
```kusto
137
141
StormEvents
138
142
| summarize
@@ -151,6 +155,8 @@ StormEvents
151
155
152
156
## Example
153
157
158
+
This query helps you identify states with a significant number of storm events and presents the information in a clear, visual format.
159
+
154
160
> [!div class="nextstepaction"]
155
161
> <ahref="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAwsuyS/KdS1LzSsp5qpRKC7NzU0syqxKVUgFCcUn55fmldiCSQ1NhaRKheCSxJJUoMLyjNQiFEUKdgqGBkCJgqL8rNTkEohCHWQVQMmi1LyU1CKF5Pyc0ty85IzEohIAvF8Py38AAAA="target="_blank">Run the query</a>
|*propertyName*, *propertyValue*|`string`|| A comma-separated list of key-value property pairs. See [supported properties](#supported-properties).|
31
31
32
32
### Supported properties
@@ -50,8 +50,14 @@ All properties are optional.
50
50
51
51
## Examples
52
52
53
+
The example in this section shows how to use the syntax to help you get started.
54
+
55
+
The examples in this article use publicly available tables in the help cluster, such as the *StormEvents* table in the Samples database.
56
+
53
57
### Dates of storms by state
54
58
59
+
This query outputs a state-wise visualization of the duration of rain-related storm events, displayed as a ladder chart to help you analyze the temporal distribution of these events.
60
+
55
61
```kusto
56
62
StormEvents
57
63
| where EventType has "rain"
@@ -63,6 +69,8 @@ StormEvents
63
69
64
70
### Dates of storms by event type
65
71
72
+
This query outputs a visualization of the duration of various storm events in Washington, displayed as a ladder chart to help you analyze the temporal distribution of these events by type.
73
+
66
74
```kusto
67
75
StormEvents
68
76
| where State == "WASHINGTON"
@@ -74,6 +82,8 @@ StormEvents
74
82
75
83
### Dates of storms by state and event type
76
84
85
+
This query outputs a visualization of the duration of various storm events in states starting with "W", displayed as a ladder chart to help you analyze the temporal distribution of these events by state and event type.
0 commit comments