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
Copy file name to clipboardExpand all lines: data-explorer/kusto/query/extract-function.md
+21-19Lines changed: 21 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,27 @@ If there's no match, or the type conversion fails: `null`.
36
36
37
37
## Examples
38
38
39
-
The following example extracts the month from the string `Dates` and returns a table with the date string and the month.
39
+
The following example extract the username, email, age from the string. The regular expressions are used to extract the information.
40
+
41
+
:::moniker range="azure-data-explorer"
42
+
> [!div class="nextstepaction"]
43
+
> <ahref="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAA8tJLVEISa0oUbBVUAotTi2yUvDKz8hzyU%2FVUXDNTczMsVLIAvJT8lMdUisScwtyUvWS83N1FBzTU60UjCyVrLkKijLzShRAWv0Sc1OBxgANK0pMLtGAGqcRHacTq62ppKNgqAO2SVOHC2yyZwqSYgclqG0aMcHamjooqoF2oaiMSdEGyhtA5QFR4bA2wQAAAA%3D%3D"target="_blank">Run the query</a>
The following example extracts the month from the string `Dates` and returns a table with the date string and the month as int type.
40
60
41
61
:::moniker range="azure-data-explorer"
42
62
> [!div class="nextstepaction"]
@@ -63,24 +83,6 @@ Dates
63
83
| 21-07-2023 | 7 |
64
84
| 10-03-2022 | 3 |
65
85
66
-
The following example returns the username from the string. The regular expression `([^,]+)` matches the text following "User: " up to the next comma, effectively extracting the username.
67
-
68
-
:::moniker range="azure-data-explorer"
69
-
> [!div class="nextstepaction"]
70
-
> <ahref="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAA8tJLVEISa0oUbBVUAotTi2yUvDKz8hzyU%2FVUXDNTczMsVLIAvJT8lMdUisScwtyUvWS83N1FBzTU60UjCyVrLkKijLzShRAWv0Sc1OBxgANK0pMLtGAGqcRHacTq62ppKNgqAO2SRMAAQTyB3MAAAA%3D"target="_blank">Run the query</a>
Copy file name to clipboardExpand all lines: data-explorer/kusto/query/time-series-analysis.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,7 +146,11 @@ demo_series3
146
146
147
147
:::image type="content" source="media/time-series-analysis/time-series-seasonality.png" alt-text="Time series seasonality.":::
148
148
149
-
- Use [series_periods_detect()](series-periods-detect-function.md) to automatically detect the periods in the time series.
149
+
- Use [series_periods_detect()](series-periods-detect-function.md) to automatically detect the periods in the time series, where:
150
+
-`num`: the time series to analyze
151
+
-`0.`: the minimum period length in days (0 means no minimum)
152
+
-`14d/2h`: the maximum period length in days, which is 14 days divided into 2-hour bins
153
+
-`2`: the number of periods to detect
150
154
- Use [series_periods_validate()](series-periods-validate-function.md) if we know that a metric should have specific distinct period(s) and we want to verify that they exist.
0 commit comments