Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 1.65 KB

not-endswith-operator.md

File metadata and controls

58 lines (41 loc) · 1.65 KB
title description ms.reviewer ms.topic ms.date
The case-insensitive !endswith string operator
Learn how to use the !endswith string operator to filter records for data that excludes a case-insensitive ending string.
alexans
reference
01/10/2023

!endswith operator

Filters a record set for data that excludes a case-insensitive ending string.

[!INCLUDE endswith-operator-comparison]

Performance tips

[!INCLUDE performance-tip-note]

When possible, use the case-sensitive !endswith_cs.

Syntax

T | where col !endswith (expression)

[!INCLUDE syntax-conventions-note]

Parameters

Name Type Required Description
T string ✔️ The tabular input whose records are to be filtered.
col string ✔️ The column to filter.
expression string ✔️ The expression used to filter.

Returns

Rows in T for which the predicate is true.

Example

[!div class="nextstepaction"] Run the query

StormEvents
| summarize Events=count() by State
| where State !endswith "is"
| where Events > 2000
| project State, Events

Output

State Events
TEXAS 4701
KANSAS 3166
IOWA 2337
MISSOURI 2016