Skip to content

Commit 33a494d

Browse files
Merge pull request #2539 from MicrosoftDocs/main638744616818150626sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents 1519d92 + dc33141 commit 33a494d

11 files changed

+101
-45
lines changed

data-explorer/kusto/query/sort-operator.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@ title: sort operator
33
description: Learn how to use the sort operator to sort the rows of the input table by one or more columns.
44
ms.reviewer: alexans
55
ms.topic: reference
6-
ms.date: 08/11/2024
7-
monikerRange: "microsoft-fabric || azure-data-explorer || azure-monitor || microsoft-sentinel "
6+
ms.date: 01/21/2025
87
---
98
# sort operator
109

11-
> [!INCLUDE [applies](../includes/applies-to-version/applies.md)] [!INCLUDE [fabric](../includes/applies-to-version/fabric.md)] [!INCLUDE [azure-data-explorer](../includes/applies-to-version/azure-data-explorer.md)] [!INCLUDE [monitor](../includes/applies-to-version/monitor.md)] [!INCLUDE [sentinel](../includes/applies-to-version/sentinel.md)]
12-
10+
> [!INCLUDE [applies](../includes/applies-to-version/applies.md)] [!INCLUDE [fabric](../includes/applies-to-version/fabric.md)] [!INCLUDE [azure-data-explorer](../includes/applies-to-version/azure-data-explorer.md)] [!INCLUDE [monitor](../includes/applies-to-version/monitor.md)] [!INCLUDE [sentinel](../includes/applies-to-version/sentinel.md)]
1311
1412
Sorts the rows of the input table into order by one or more columns.
1513

@@ -52,6 +50,8 @@ When the input table contains the special values `null`, `NaN`, `-inf` and `+inf
5250

5351
The following example shows storm events by state in alphabetical order with the most recent storms in each state appearing first.
5452

53+
[!INCLUDE [help-cluster-note](../includes/help-cluster-note.md)]
54+
5555
:::moniker range="azure-data-explorer"
5656
> [!div class="nextstepaction"]
5757
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAwsuyS/KdS1LzSsp5qpRyC9KSS1SSKpUCC5JLElVSCxO1gExi0pCMnNTFVJSi5MBfa8LRzAAAAA=" target="_blank">Run the query</a>
@@ -62,6 +62,8 @@ StormEvents
6262
| sort by State asc, StartTime desc
6363
```
6464

65+
**Output**
66+
6567
This table only shows the top 10 query results.
6668

6769
|StartTime|State|EventType|...|

data-explorer/kusto/query/summarize-operator.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ title: summarize operator
33
description: Learn how to use the summarize operator to produce a table that summarizes the content of the input table.
44
ms.reviewer: alexans
55
ms.topic: reference
6-
ms.date: 08/11/2024
6+
ms.date: 01/21/2025
77
ms.localizationpriority: high
8-
monikerRange: "microsoft-fabric || azure-data-explorer || azure-monitor || microsoft-sentinel "
98
---
109
# summarize operator
1110

12-
> [!INCLUDE [applies](../includes/applies-to-version/applies.md)] [!INCLUDE [fabric](../includes/applies-to-version/fabric.md)] [!INCLUDE [azure-data-explorer](../includes/applies-to-version/azure-data-explorer.md)] [!INCLUDE [monitor](../includes/applies-to-version/monitor.md)] [!INCLUDE [sentinel](../includes/applies-to-version/sentinel.md)]
13-
11+
> [!INCLUDE [applies](../includes/applies-to-version/applies.md)] [!INCLUDE [fabric](../includes/applies-to-version/fabric.md)] [!INCLUDE [azure-data-explorer](../includes/applies-to-version/azure-data-explorer.md)] [!INCLUDE [monitor](../includes/applies-to-version/monitor.md)] [!INCLUDE [sentinel](../includes/applies-to-version/sentinel.md)]
1412
1513
Produces a table that aggregates the content of the input table.
1614

@@ -30,7 +28,7 @@ Produces a table that aggregates the content of the input table.
3028
|*Column*| `string` ||The name for the result column. Defaults to a name derived from the expression.|
3129
|*Aggregation*| `string` | :heavy_check_mark:|A call to an [aggregation function](aggregation-functions.md) such as `count()` or `avg()`, with column names as arguments.|
3230
|*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).|
3432

3533
> [!NOTE]
3634
> 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.
3937
> * If *GroupExpression* is not provided, the output will be a single (empty) row.
4038
> * If *GroupExpression* is provided, the output will have no rows.
4139
42-
4340
### Supported parameters
4441

4542
|Name |Description |
@@ -78,6 +75,10 @@ The following table summarizes the default values of aggregations:
7875
7976
## Examples
8077

78+
The example in this section shows how to use the syntax to help you get started.
79+
80+
[!INCLUDE [help-cluster](../includes/help-cluster-note.md)]
81+
8182
:::image type="content" source="media/summarizeoperator/summarize-price-by-supplier.png" alt-text="Summarize price by fruit and supplier.":::
8283

8384
### Unique combination
@@ -131,6 +132,7 @@ StormEvents
131132
| 01:08:00 | 11:55:00 |
132133

133134
::: moniker range="microsoft-fabric || azure-data-explorer || azure-monitor || microsoft-sentinel"
135+
134136
### Distinct count
135137

136138
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
192194
> [!div class="nextstepaction"]
193195
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAz2PwQ7CIBBE7yb+A0cwHLz0YqI/YkyzBaQbAU3ZNtT48S7EGg4zmTe7WSwQvyE4WU7hmby63va7j8hzjDDh2wlIa1/OBA/Xs5VFaQGT7yMUjn9OFi0OG8C0AUx/sPg2OcwYbDajiyDpadcEEQ27TBOmWlFcagur1nnWl5uMS4T1Ri26jqMxBEZCZ7JuaSU+eFO8114RF3HkgCx6l6nBhb8EyfAe9QXbqS6i+AAAAA==" target="_blank">Run the query</a>
194196
195-
196197
```kusto
197198
datatable(x:long)[]
198199
| summarize any_x=take_any(x), arg_max_x=arg_max(x, *), arg_min_x=arg_min(x, *), avg(x), buildschema(todynamic(tostring(x))), max(x), min(x), percentile(x, 55), hll(x) ,stdev(x), sum(x), sumif(x, x > 0), tdigest(x), variance(x)
@@ -206,11 +207,9 @@ datatable(x:long)[]
206207

207208
The result of `avg_x(x)` is `NaN` due to dividing by 0.
208209

209-
210210
> [!div class="nextstepaction"]
211211
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAA0tJLAHCpJxUjQqrnPy8dM3oWF6uGoXi0tzcxKLMqlQFheT80rwSjQpNHQgrM02jQsFOwUBTQUchBSGXApfUUYDIAwDGwdg7WgAAAA==" target="_blank">Run the query</a>
212212
213-
214213
```kusto
215214
datatable(x:long)[]
216215
| summarize count(x), countif(x > 0) , dcount(x), dcountif(x, x > 0)
@@ -222,11 +221,9 @@ datatable(x:long)[]
222221
|---|---|---|---|
223222
|0|0|0|0|
224223

225-
226224
> [!div class="nextstepaction"]
227225
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAA0tJLAHCpJxUjQqrnPy8dM3oWF6uGoXi0tzcxKLMqlQFhdzE7NT44tQSjQpNHQgnJ7MYxAMATGERsTsAAAA=" target="_blank">Run the query</a>
228226
229-
230227
```kusto
231228
datatable(x:long)[]
232229
| summarize make_set(x), make_list(x)
@@ -259,11 +256,9 @@ range x from 1 to 4 step 1
259256

260257
The regular count will count nulls:
261258

262-
263259
> [!div class="nextstepaction"]
264260
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAy3KTQqAIBAG0H3QHb6lA20MWnoYqTEEf2JU0OjwEbR7iyc2nYwOJzlCo2asKJUv6Hl6wL1yOjBg4J1THcZALxC2QaUWAv3eiL5eWoxW/M3Yc0tVDXoBSiga018AAAA=" target="_blank">Run the query</a>
265261
266-
267262
```kusto
268263
range x from 1 to 2 step 1
269264
| extend y = iff(x == 1, real(null), real(5))
@@ -276,11 +271,9 @@ range x from 1 to 2 step 1
276271
|---|
277272
|2|
278273

279-
280274
> [!div class="nextstepaction"]
281275
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAA03KSwqAIBRG4XnQHv6hQhODhq4lhK4h+YirgkWLr6BBs3PgYxNXQoPlFKBQEkbkQjtU312gViguOKDhrBUNWkMNYDJexOq9/HqS8uW5hmDYnYRgNpozFXE85Dc305SXFm8AAAA=" target="_blank">Run the query</a>
282276
283-
284277
```kusto
285278
range x from 1 to 2 step 1
286279
| extend y = iff(x == 1, real(null), real(5))

data-explorer/kusto/query/visualization-anomalychart.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Anomaly chart visualization
33
description: This article describes the anomaly chart visualization.
44
ms.reviewer: alexans
55
ms.topic: reference
6-
ms.date: 08/11/2024
6+
ms.date: 01/21/2025
77
monikerRange: "microsoft-fabric || azure-data-explorer"
88
---
99
# Anomaly chart
@@ -61,6 +61,10 @@ This visualization supports splitting into multiple y-axis values. The supported
6161

6262
## Example
6363

64+
The example in this section shows how to use the syntax to help you get started.
65+
66+
[!INCLUDE [help-cluster](../includes/help-cluster-note.md)]
67+
6468
:::moniker range="azure-data-explorer"
6569
> [!div class="nextstepaction"]
6670
> <a href="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>

data-explorer/kusto/query/visualization-areachart.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ title: Area chart visualization
33
description: This article describes the area chart visualization.
44
ms.reviewer: alexans
55
ms.topic: reference
6-
ms.date: 08/11/2024
7-
monikerRange: "microsoft-fabric || azure-data-explorer || azure-monitor || microsoft-sentinel"
6+
ms.date: 01/28/2025
87
---
98
# Area chart
109

@@ -61,7 +60,6 @@ This visualization supports splitting into multiple y-axis values:
6160
|`axes` |A single chart is displayed with multiple y-axes (one per series).|
6261
|`panels` |One chart is rendered for each `ycolumn` value. Maximum five panels.|
6362

64-
6563
::: moniker-end
6664

6765
::: moniker range="azure-monitor || microsoft-sentinel"
@@ -92,6 +90,10 @@ The supported values of this property are:
9290

9391
## Examples
9492

93+
The example in this section shows how to use the syntax to help you get started.
94+
95+
[!INCLUDE [help-cluster](../includes/help-cluster-note.md)]
96+
9597
### Simple area chart
9698

9799
The following example shows a basic area chart visualization.

data-explorer/kusto/query/visualization-barchart.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ title: Bar chart visualization
33
description: This article describes the bar chart visualization.
44
ms.reviewer: alexans
55
ms.topic: reference
6-
ms.date: 08/11/2024
7-
monikerRange: "microsoft-fabric || azure-data-explorer || azure-monitor || microsoft-sentinel"
6+
ms.date: 01/28/2025
87
---
98
# Bar chart
109

@@ -91,6 +90,10 @@ The supported values of this property are:
9190

9291
## Examples
9392

93+
The example in this section shows how to use the syntax to help you get started.
94+
95+
[!INCLUDE [help-cluster](../includes/help-cluster-note.md)]
96+
9497
### Render a bar chart
9598

9699
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
157160

158161
### Use the `ysplit` property
159162

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+
160165
> [!div class="nextstepaction"]
161166
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAA1WOMQ6DMAxFd07hkagsPQAbHZjhAiFYwogkyDGlVD1800a04O1//2f/Rjzb2x2dhOwFYbFWMz0xgzitFz3VblyYMED52ea7rIjRiILLya1dn/zif6BCLcOOJ3GGk/dDv2S3QUcub0SztGSxgGuvYsGZ/RhDcFicWhbHnzHP6HpkMH5arDNDhGAlGSDfwjyRlPqBQb0BEH1UJQQBAAA=" target="_blank">Run the query</a>
162167
@@ -189,5 +194,4 @@ StormEvents
189194

190195
:::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":::
191196

192-
193-
::: moniker-end
197+
::: moniker-end

data-explorer/kusto/query/visualization-card.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Card visualization
33
description: This article describes the card visualization.
44
ms.reviewer: alexans
55
ms.topic: reference
6-
ms.date: 08/11/2024
6+
ms.date: 01/28/2025
77
monikerRange: "microsoft-fabric || azure-data-explorer"
88
---
99
# Card
@@ -38,6 +38,10 @@ All properties are optional.
3838

3939
## Example
4040

41+
This query provides a count of flood events in Virginia and displays the result in a card format.
42+
43+
[!INCLUDE [help-cluster-note](../includes/help-cluster-note.md)]
44+
4145
:::moniker range="azure-data-explorer"
4246
> [!div class="nextstepaction"]
4347
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAy2LsQqDQBAFe7/icZX5CAuLJFxjocH+8BZd0D1ZV0Xw42OC1RQz01jS6bmR2JKd2AdSQmPBqChc6+u3r3zpECTiH32O+WdeY0rRXUOXVrGLShJJ0QWN2NkG5MY20l0uYEHL2rNwcI8vTweEO3QAAAA=" target="_blank">Run the query</a>

data-explorer/kusto/query/visualization-columnchart.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ title: Column chart visualization
33
description: This article describes the column chart visualization.
44
ms.reviewer: alexans
55
ms.topic: reference
6-
ms.date: 08/11/2024
7-
monikerRange: "microsoft-fabric || azure-data-explorer || azure-monitor || microsoft-sentinel"
6+
ms.date: 01/29/2025
87
---
98
# Column chart
109

@@ -93,13 +92,17 @@ The supported values of this property are:
9392

9493
## Examples
9594

95+
The example in this section shows how to use the syntax to help you get started.
96+
97+
[!INCLUDE [help-cluster](../includes/help-cluster-note.md)]
98+
9699
### Render a column chart
97100

101+
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.
98102

99103
> [!div class="nextstepaction"]
100104
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAwsuyS/KdS1LzSsp5qpRKC7NzU0syqxKVUgFCcUn55fmldiCSQ1NhaRKheCSxJJUoMLyjNQiFEUKdgqGBkCJgqL8rNTkEohCHWQVQMmi1LyU1CKF5Pyc0ty85IzEohIAvF8Py38AAAA=" target="_blank">Run the query</a>
101105
102-
103106
```kusto
104107
StormEvents
105108
| summarize event_count=count() by State
@@ -112,6 +115,8 @@ StormEvents
112115

113116
### Use the `ysplit` property
114117

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+
115120
> [!div class="nextstepaction"]
116121
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAA1WOMQ6DMAxFd07hkagsPQAbHZjhAiFYwogkyDGlVD1800a04O1//2f/Rjzb2x2dhOwFYbFWMz0xgzitFz3VblyYMED52ea7rIjRiILLya1dn/zif6BCLcOOJ3GGk/dDv2S3QUcub0SztGSxgGuvYsGZ/RhDcFicWhbHnzHP6HpkMH5arDNDhGAlGSDfwjyRlPqBQb0BEH1UJQQBAAA=" target="_blank">Run the query</a>
117122
@@ -132,7 +137,6 @@ To split the view into separate panels, specify `panels` instead of `axes`:
132137
> [!div class="nextstepaction"]
133138
> <a href="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>
134139
135-
136140
```kusto
137141
StormEvents
138142
| summarize
@@ -151,6 +155,8 @@ StormEvents
151155

152156
## Example
153157

158+
This query helps you identify states with a significant number of storm events and presents the information in a clear, visual format.
159+
154160
> [!div class="nextstepaction"]
155161
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAwsuyS/KdS1LzSsp5qpRKC7NzU0syqxKVUgFCcUn55fmldiCSQ1NhaRKheCSxJJUoMLyjNQiFEUKdgqGBkCJgqL8rNTkEohCHWQVQMmi1LyU1CKF5Pyc0ty85IzEohIAvF8Py38AAAA=" target="_blank">Run the query</a>
156162

data-explorer/kusto/query/visualization-ladderchart.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Ladder chart visualization
33
description: This article describes the ladder chart visualization.
44
ms.reviewer: alexans
55
ms.topic: reference
6-
ms.date: 08/11/2024
6+
ms.date: 01/29/2025
77
monikerRange: "azure-data-explorer"
88
---
99
# Ladder chart
@@ -26,7 +26,7 @@ The last two columns are the x-axis, and the other columns are the y-axis.
2626

2727
| Name | Type | Required | Description |
2828
| -- | -- | -- | -- |
29-
| *T* | `string` | :heavy_check_mark: | Input table name.
29+
| *T* | `string` | :heavy_check_mark: | Input table name|
3030
| *propertyName*, *propertyValue* | `string` | | A comma-separated list of key-value property pairs. See [supported properties](#supported-properties).|
3131

3232
### Supported properties
@@ -50,8 +50,14 @@ All properties are optional.
5050

5151
## Examples
5252

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+
5357
### Dates of storms by state
5458

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+
5561
```kusto
5662
StormEvents
5763
| where EventType has "rain"
@@ -63,6 +69,8 @@ StormEvents
6369

6470
### Dates of storms by event type
6571

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+
6674
```kusto
6775
StormEvents
6876
| where State == "WASHINGTON"
@@ -74,6 +82,8 @@ StormEvents
7482

7583
### Dates of storms by state and event type
7684

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.
86+
7787
```kusto
7888
StormEvents
7989
| where State startswith "W"

0 commit comments

Comments
 (0)