Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
643c838
Added link and moniker pivots
AndyKop Nov 24, 2024
5f561ba
removed moniker
AndyKop Nov 24, 2024
7ad9629
fix
AndyKop Nov 24, 2024
c3be12e
fix links
AndyKop Nov 24, 2024
9820133
fabric doc not merged yet so link to ADX doc for now
AndyKop Nov 24, 2024
58a0bc7
remove link for fabric pivot
AndyKop Nov 24, 2024
be59f18
Test link
AndyKop Nov 24, 2024
ff66e97
fix link
AndyKop Nov 24, 2024
4314f8a
test link change
AndyKop Nov 24, 2024
cc6b6df
New examples added
AndyKop Nov 26, 2024
024552f
fix parse
AndyKop Nov 26, 2024
a7435b2
acrolinx fixes
AndyKop Nov 26, 2024
b2f46e9
date
AndyKop Nov 26, 2024
48abc9e
Update data-explorer/kusto/includes/direct-ingestion-note.md
AndyKop Nov 28, 2024
ccbb547
Update data-explorer/kusto/includes/direct-ingestion-note.md
AndyKop Nov 28, 2024
989aa19
Update data-explorer/kusto/includes/direct-ingestion-note.md
shsagir Dec 9, 2024
ebfe839
Merge branch 'main' of https://github.com/MicrosoftDocs/dataexplorer-…
AndyKop Dec 9, 2024
d56dafe
Updated note to add link to overview doc
AndyKop Dec 9, 2024
dabc4c1
Merge branch 'main' of https://github.com/MicrosoftDocs/dataexplorer-…
AndyKop Dec 9, 2024
9c53083
Merge pull request #6403 from AndyKop/wi=341295-kusto-ingest-from-sto…
ttorble Dec 9, 2024
1410b2a
Merge pull request #6412 from AndyKop/wi-308912-not-function-update-e…
ttorble Dec 9, 2024
1422d7c
Merge pull request #6464 from MicrosoftDocs/main
Taojunshen Dec 9, 2024
b1496aa
Merging changes synced from https://github.com/MicrosoftDocs/dataexpl…
Dec 9, 2024
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
12 changes: 10 additions & 2 deletions data-explorer/kusto/includes/direct-ingestion-note.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
---
ms.topic: include
ms.date: 08/11/2024
ms.date: 09/12/2024
monikerRange: "microsoft-fabric || azure-data-explorer"
---

<!-- update link for Fabric to (/fabric/real-time-intelligence/ingest-data-overview), once the overview doc is merged-->
:::moniker range="microsoft-fabric"
> [!NOTE]
> This ingestion method is intended for exploration and prototyping. Don't use it in production or high-volume scenarios.
:::moniker-end

:::moniker range="azure-data-explorer"
> [!NOTE]
> This ingestion method is intended for exploration and prototyping. Don't use it in production or high-volume scenarios. For more information about ingestion options, see [Data ingestion overview](/azure/data-explorer/ingest-data-overview).
:::moniker-end
67 changes: 59 additions & 8 deletions data-explorer/kusto/query/not-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: not()
description: Learn how to use the not() function to reverse the value of its boolean argument.
ms.reviewer: alexans
ms.topic: reference
ms.date: 08/11/2024
ms.date: 11/26/2024
---
# not()

Expand All @@ -21,22 +21,73 @@ Reverses the value of its `bool` argument.

| Name | Type | Required | Description |
|--|--|--|--|
|*expr*|scalar| :heavy_check_mark:|An expression that evaluates to a boolean value. The result of this expression will be reversed.|
|*expr*|scalar| :heavy_check_mark:|An expression that evaluates to a boolean value. The result of this expression is reversed.|

## Returns

Returns the reversed logical value of its `bool` argument.

## Example
## Examples

> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAysoyswrUcjLL9FIS8wpTtVUsLVVKCkqTQUAozQnchgAAAA=" target="_blank">Run the query</a>
The following query returns the number of events that are not a tornado, per state.

:::moniker range="azure-data-explorer"
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAwsuyS%2FKdS1LzSspVuDlqlEoz0gtSlXIyy%2FRAAuGVBakKtjaKiiF5BflJabkK2mCVRWX5uYmFmVWpSok55fmlWhoKiRVKgSXJJakAgA2hsjZUAAAAA%3D%3D" target="_blank">Run the query</a>
:::moniker-end

```kusto
print not(false) == true
StormEvents
| where not(EventType == "Tornado")
| summarize count() by State
```

**Output**

|print_0|
|--|
|true|
| State | Count |
|--|--|
| TEXAS | 4485 |
| KANSAS | 3005 |
| IOWA | 2286 |
| ILLINOIS | 1999 |
| MISSOURI | 1971 |
| GEORGIA | 1927 |
| MINNESOTA | 1863 |
| WISCONSIN | 1829 |
| NEBRASKA | 1715 |
| NEW YORK | 1746 |
| ... | ... |

The following query excludes records where either the EventType is hail, *or* the state is Alaska.

:::moniker range="azure-data-explorer"
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAwsuyS%2FKdS1LzSsp5qpRKM9ILUpVyMsv0QALhVQWpCrY2iooeSRm5igp5BcpBJcklkCEHHMSi7MTlTQBNhteI0EAAAA%3D" target="_blank">Run the query</a>
:::moniker-end

```kusto
StormEvents
| where not(EventType == "Hail" or State == "Alaska")
```

The next query excludes records where both the EventType is hail *and* the state is Alaska simultaneously.

:::moniker range="azure-data-explorer"
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAwsuyS%2FKdS1LzSsp5uWqUSjPSC1KVcjLL9EAi4VUFqQq2NoqKHkkZuYoKSTmpSgElySWQMQccxKLsxOVNAFEoBiQQwAAAA%3D%3D" target="_blank">Run the query</a>
:::moniker-end

```kusto
StormEvents
| where not(EventType == "Hail" and State == "Alaska")
```

### Combine with other conditions

You can also combine the not() function with other conditions. The following query returns all records where the EventType is not a flood and the property damage is greater than $1,000,000.

:::moniker range="azure-data-explorer"
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAwsuyS%2FKdS1LzSsp5uWqUSjPSC1KVcjLL9EAi4VUFqQq2NoqKLnl5OenKGkqJOalKLgk5iampwYU5RekFpVUKtgpGBqAAQBYZhVQSwAAAA%3D%3D" target="_blank">Run the query</a>
:::moniker-end

```kusto
StormEvents
| where not(EventType == "Flood") and DamageProperty > 1000000
```
Loading