Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ Returns a single table useful for constructing a funnel diagram for the analyzed

## Examples

### Exploring Storm Events

The following query checks the completion funnel of the sequence: `Hail` -> `Tornado` -> `Thunderstorm Wind`
The following examples show how to use the `funnel_sequence_completion` plugin to analyze storm events.
The query checks the completion funnel of the sequence: `Hail` -> `Tornado` -> `Thunderstorm Wind`
in "overall" time of 1hour, 4hours, 1day.

:::moniker range="azure-data-explorer"
Expand Down
5 changes: 2 additions & 3 deletions data-explorer/kusto/query/funnel-sequence-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ Returns three output tables, which are useful for constructing a sankey diagram

## Examples

### Exploring storm events

The following query looks at the table StormEvents (weather statistics for 2007) and shows which events happened before/after all Tornado events occurred in 2007.
The following examples show how to use the `funnel_sequence` plugin to analyze storm events.
The query looks at the table StormEvents (weather statistics for 2007) and shows which events happened before/after all Tornado events occurred in 2007.

:::moniker range="azure-data-explorer"
> [!div class="nextstepaction"]
Expand Down
19 changes: 19 additions & 0 deletions data-explorer/kusto/query/gamma-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,25 @@ Computes the gamma function for the provided *number*.

Gamma function of *number*.

## Examples

The following example shows how to use the `gamma()` function to compute the gamma of the input parameter.

:::moniker range="azure-data-explorer"
> [!div class="nextstepaction"]
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAysoyswrUShKLS7NKVGwVUhPzM1N1DDVBABf6u5FFwAAAA%3D%3D" target="_blank">Run the query</a>
::: moniker-end

```kusto
print result = gamma(5)
```

Output:

| result |
|--------|
| 24 |

## Related content

For computing log-gamma function, see [loggamma()](loggamma-function.md).
1 change: 0 additions & 1 deletion data-explorer/kusto/query/geo-angle-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,3 @@ print is_null = isnull(geo_angle(0, 10, 0, 10, 3, -10))
|is_null|
|---|
|True|

Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ print geo_closest_point_on_polygon(-73.9839, 40.7705, central_park)
|---|
|{"type": "Point","coordinates": [-73.981205580153926, 40.769359452843211] }|


The following example returns a null result because of the invalid coordinate input.

:::moniker range="azure-data-explorer"
Expand Down
10 changes: 0 additions & 10 deletions data-explorer/kusto/query/geo-distance-point-to-line-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ dynamic({"type": "MultiLineString","coordinates": [[line_1, line_2, ..., line_N]

## Examples

### Shortest distance to airport

The following example finds the shortest distance between North Las Vegas Airport and a nearby road.

:::image type="content" source="media/geo-distance-point-to-line-function/distance-point-to-line.png" alt-text="Screenshot of a map showing the distance between North Las Vegas Airport and a specific road.":::
Expand All @@ -73,8 +71,6 @@ print distance_in_meters = geo_distance_point_to_line(-115.199625, 36.210419, dy
|--------------------|
| 3797.88887253334 |

### Storm events across the south coast

The following example finds storm events along the US south coast filtered by a maximum distance of 5 km from the defined shore line.

:::moniker range="azure-data-explorer"
Expand All @@ -94,8 +90,6 @@ StormEvents

:::image type="content" source="media/geo-distance-point-to-line-function/us-south-coast-storm-events.png" alt-text="Screenshot of rendered storm events along the south coast of the US.":::

### New York taxi pickups

The following example finds New York taxi pickups filtered by a maximum distance of 0.1 meters from the defined multiline.

:::moniker range="azure-data-explorer"
Expand Down Expand Up @@ -149,8 +143,6 @@ nyc_taxi

:::image type="content" source="media/geo-distance-point-to-line-function/lines-folding.png" alt-text="Screenshot of a query map rendering example of lines folded into a multiline. The example is all taxi pickups 10 km away from all Manhattan roads.":::

### Invalid LineString

The following example returns a null result because of the invalid LineString input.

:::moniker range="azure-data-explorer"
Expand All @@ -168,8 +160,6 @@ print distance_in_meters = geo_distance_point_to_line(1,1, dynamic({ "type":"Lin
|--------------------|
| |

### Invalid coordinate

The following example returns a null result because of the invalid coordinate input.

:::moniker range="azure-data-explorer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ The geospatial coordinate values in [GeoJSON Format](https://tools.ietf.org/html

## Examples

The following example calculates the geospatial coordinates that represent the center of a geohash rectangular area.

:::moniker range="azure-data-explorer"
> [!div class="nextstepaction"]
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAysoyswrUSjIB5G2Cump+fFAnJFYnBFfkh+fnJpXUpSYEw+W1lAqLs3Lq1TS5KpRSK0oSc1LUUjOzy9KycxLLEktBmoGq9JDEkMozMnPS88sKU1JBSpDUhBtEKujkJNYgk3KMBYAnhfZ4psAAAA=" target="_blank">Run the query</a>
Expand Down Expand Up @@ -68,8 +70,6 @@ print geohash = geo_geohash_to_central_point("a")
|---|
||

### Creating location deep-links for Bing Maps

You can use the geohash value to create a deep-link URL to Bing Maps by pointing to the geohash center point:

:::moniker range="azure-data-explorer"
Expand Down
2 changes: 2 additions & 0 deletions data-explorer/kusto/query/geo-geohash-to-polygon-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Polygon in [GeoJSON Format](https://tools.ietf.org/html/rfc7946) and of a [dynam

## Examples

The following example calculates the polygon that represents the geohash rectangular area.

:::moniker range="azure-data-explorer"
> [!div class="nextstepaction"]
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAysoyswrUXBPzc9ILM4IyM+pTM/PU7BVSE/Nj0+HCMaX5McXQCQ0lFKKTItKlTStAWzxQVs3AAAA" target="_blank">Run the query</a>
Expand Down
2 changes: 2 additions & 0 deletions data-explorer/kusto/query/geo-h3cell-children-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Array of H3 Cell children tokens. If the H3 Cell is invalid or child resolution

## Examples

The following example calculates the H3 cell children.

:::moniker range="azure-data-explorer"
> [!div class="nextstepaction"]
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAysoyswrUUjOyMxJKUrNU7BVSE/Nj88wTk7NyYmHiWqoW5gZJRoamBulQYC6JgDo0XQKNwAAAA==" target="_blank">Run the query</a>
Expand Down
3 changes: 3 additions & 0 deletions data-explorer/kusto/query/geo-h3cell-level-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ An integer that represents H3 Cell level. Valid level is in range [0, 15]. If th

## Examples

The following example calculates the H3 cell resolution.

:::moniker range="azure-data-explorer"
> [!div class="nextstepaction"]
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAysoyswrUUhOzcmJL0otVrBVSE/Nj88wBgvkpJal5mioW5gZJRoamBulQYC6JgA3an62NAAAAA==" target="_blank">Run the query</a>
Expand All @@ -46,6 +48,7 @@ print cell_res = geo_h3cell_level('862a1072fffffff')
|---|
|6|


:::moniker range="azure-data-explorer"
> [!div class="nextstepaction"]
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAysoyswrUUhOzcmJL0otVrBVSE/Nj88wBgvkpJal5miABArygariS2AyGoY6QGigqQkAmqtQej4AAAA=" target="_blank">Run the query</a>
Expand Down